check box enable in Jquery
<pre><code>&lt;tr id="tr99"&gt;&lt;td&gt;......&lt;/td&gt;&lt;/tr&gt;

&lt;input type="checkbox" onclick="toggletr(this);" value="val" id="cbox" /&gt;
</code></pre>

<p>The javascript:</p>

<pre><code>$(document).ready(function() { 

function toggletr(obj)
{
    if(obj.checked) 
        $(#tr99).hide();
    else  
        $(#tr99).show();
}
</code></pre>

<p>hi.this is my code that runs in add page  of  staff.
 if user  is  in edit mode the value   that  value is  checked in the  code
i mean to say in .cs .
 <code>checkbox.checked ="true"</code> means . that  time  i need  to make that  tr value  "tr99" is  visiable  true
  if  checkbox  is  not  checked then  make the  tr  as  hide.</p>
