TeddyKiller Posted July 7, 2010 Share Posted July 7, 2010 function SetChecked(val,chkName) { dml = document.forms['myForm']; len = dml.elements.length; for(i = 0; i < len; i++) { if (dml.elements[i].name == chkName) { dml.elements[i].checked = val; } } } Thats my javascript and my check and checkall is.. <a href="javascript:SetChecked(1,'checkItem[]')">Check All</a> <a href="javascript:SetChecked(0,'checkItem[]')">Uncheck All</a> Though how do I get it to work with a check box. <input type="checkbox" name="uccall" /> Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.