hi! i don't have problem in checking all checkbox but if i uncheck the checkbox the id=cball(my main checkbox of all),
the sub don't follow the main(id=cball);
here's my code for jquery:
$(document).ready(function(){
$("#cball").click(function(){
$("tr [id=cbmessage]").attr("checked","checked");
},function()
{
$("tr [id=cbmessage]").attr("checked","");
});
});
html code:
<input type="checkbox" name="cball" id="cball" />
<input type="checkbox" name="cball" id="cbmessage" /><br>
<input type="checkbox" name="cball" id="cbmessage" />