hello
i have this function to check all the checkboxes in the form.
function msgSCheck(){
chk = document.msgFList.msgCList;
if(document.msgFList.msgCheckCtrl.checked==true){
for (i = 0; i < chk.length; i++)
chk.checked = true ;
}else{
for (i = 0; i < chk.length; i++)
chk.checked = false ;
}
}
and input checkboxes like this one!
<input type="checkbox" name="msgCList" value="93287" />
like that works fine.
but i want to change the name in to name="msgCList[]" so i can get the value from al the checkboxs in that form..
chk = document.msgFList.msgCList[];
using this to check all the boxes i get an error.. what i need to do ?! please help me :) thanks