RE: [PHP] PHP & JavaScript
| From: | Jay Blanchard | Date: | Fri, 19 May 2006 21:22:58 +0000 |
| Subject: | RE: [PHP] PHP & JavaScript | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-236536@lists.php.net to get a copy of this message | ||
[snip]
For grouped checkboxes that have numerical keys, why not give them an ID
that's simply a concatenation of NAME and the VALUE, so it's unique?
[/snip]
Because JavaScript loops through all the like ID'ed checkboxes to check
or uncheck groups. It could be done the other way, but then JavaScript
code has to have more to it to increment from the value of the first ID.