Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Check all boxes :: JS howto?


Nick_W - 5:53 am on Aug 20, 2002 (gmt 0)


well, when I do 'name="test[$key]" the JS does not work.

I've come up with a solution, though I don't think it would work if I had multiple checkbox groups as it would check all of them...

I just dropped the name of the checkboxes from the onclick like this:

onclick="selectAll(this.form)"

Works fine, but limited I suspect...

Nick


Thread source:: http://www.webmasterworld.com/javascript/174.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com