Checkboxes Problem
on checking main checkbox,all the other checkboxes should be checked and vice versa
by nagasrihari
HTML
<table>
<tr id="tr_main">
<td>
<input type="checkbox" id="chk_Main" />
</td>
<td>
<input type="checkbox" id="chk_child" />
</td>
</tr>
</table>
JavaScript
$('#chk_Main').click( function CheckOther()
{
var ischecked = $('#chk_Main').is(':checked');
$('td input:checkbox', $('#tr_main')).attr('checked', ischecked);
});