i have got a HTML table which contain a check box in and other checkboxes in i want that all 's checkboxes should be checked /unchecked on basis of 's Check box... please help me resolve this... i wrote follwoing code. but its not working..
<script language="javascript" type="text/javascript">
function SelectAll(id) {
var frm = document.getElementById('tblemail');
for (i=0;i<frm.elements.length;i++) {
if (frm.elements[i].type == "checkbox") {
frm.elements[i].checked = document.getElementById(id).checked;
}
}
}
</script>