<SCRIPT LANGUAGE="JavaScript">
function CheckAll(chk)
{
for (i = 0; i < chk.length; i++)
chk[i].checked = true ;
}
function UnCheckAll(chk)
{
for (i = 0; i < chk.length; i++)
chk[i].checked = false ;
}
</script>
<input type="button" name="Check_All" value="Check All" onClick="CheckAll(document.myform.check_list)">
<input type="button" name="Un_CheckAll" value="Uncheck All" onClick="UnCheckAll(document.myform.check_list)">
<input type="checkbox" name="check_list[]" value="1">1
<input type="checkbox" name="check_list[]" value="2">2
<input type="checkbox" name="check_list[]" value="3">3
When I click on the CheckAll button, it doesnot check all the boxes.
If I use
<input type="checkbox" name="check_list" value="1">1
<input type="checkbox" name="check_list" value="2">2
<input type="checkbox" name="check_list" value="3">3
This works.
How can I pass the multiple value in the array to another page