$("selector for checkbox".change(function() { if($(this).is(':checked') ) $("selector for textarea").show(); else $("selector for textarea").hide(); });
function ShowHide(chk,txt) { if(document.getElementById(chk).checked) document.getElementById(txt).style.display=''; else document.getElementById(txt).style.display='none'; }
<pre lang="text"></pre>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)