Yeah, i guess it all depends what you're doing what works for you. Another avenue to try (depending on your application) is: Group all your checkboxes together inside of a uniquely-named DIV and then use javascript to get all of the "checkbox" elements inside the DIV. That way, you dont really need to know or care about their id/name. On 5/19/06, Jay Blanchard <jblanchard@xxxxxxxxxx> wrote:
[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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- Scott Hurring [scott dot hurring dot lists at gmail dot com] http://hurring.com/