Re: 'Select All'
| From: | Charles Williams | Date: | Mon, 17 Dec 2001 18:06:17 +0000 |
| Subject: | Re: 'Select All' | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77971@lists.php.net to get a copy of this message | ||
Shane,
is this meant for initial settings of the form only or as a button, or some
such, to allow someone to select all the boxs?
chuck
----- Original Message -----
From: "Shane Wright" <me@shanewright.co.uk>
To: <php-general@lists.php.net>
Sent: Monday, December 17, 2001 6:54 PM
Subject: [PHP] 'Select All'
> Hi
>
> I'm having somewhat of a problem :(
>
> I have my banks of checkboxes, all named 'mycheckbox[]' with the values as
> different IDs. The user happily checks a few of them and my scripts
happily
> process the resulting arrays.
>
> But... how do I get Javascript to do a 'select all' on them?? I cant
access
> them by name because of the square brackets, and I cant access them by
going
> through all form elements in case there are other checkboxes that dont
want
> to be included.
>
> Is there a tidy way around this, does any of the above make sense?
>
> Thanks
>
> --
> Shane
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>