[Javascript] A better way to do this

Claude Schneegans schneegans at internetique.com
Tue Apr 29 13:54:05 CDT 2008


 >>There has to be a better way to do this:

Try this (not checked):
function checkAll( form )
    {
    for (var i = 1; i<= 5; i++)form['a'+i].checked = form.checkall.checked
    }

-- 
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: piegeacon at internetique.com)
Thanks.




More information about the Javascript mailing list