0 LIKES LikeUnLike
i have the following code:<form name="frmListCategory"><table><tr><td><input type="checkbox" name="frmCategory[]" id="frmCategory" value="4"></td><td> Cookies</td></tr><tr><td><input type="checkbox" name="frmCategory[]" id="frmCategory" value="6"></td><td> Electronics</td></tr></table></form>I also have java script functionfunction selectall(chkbox) {for (i=0; i < chkbox.length; i++)chkbox[i].checked = true ;}function unselectall(chkbox) {count=0;for (i=0; i < chkbox.length; i++){if(chkbox[i].checked)count++;chkbox[i].checked = false ;}if(count==0){alert("Select something to Unselect");}}If i call these two functions its workin perfectly!!selectall(document.frmListCategory.frm...Suppose if there is only one row it is not working.These rows were generated at server side.if only one row is generated, then it is not working.For all more than one its workingSomeone Help! Please
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 3 answers.