[Javascript] radio button, check box check all or none

dont worry aspmailbox at yahoo.com
Mon May 13 09:40:08 CDT 2002


Thanks guys,
I do mean ID as in name.  All of them will be named
the same.  So I will have 3 checkboxes with the same
name, and 2 that have the same name and 4 with the
same name and so forward.  I just want all in the same
'group' named the same to be checked when one is
checked.
thanks again

--- Peter Brunone <peter at brunone.com> wrote:
> Yeah, that probably bears some clarification;
> thanks, Scott, for bringing it
> up.
> 
>     If by ID he means NAME attribute, then my
> function will work.  If he
> means VALUE attribute, then no, there's no easy way
> to blanket-check, all of
> them.  If he actually means ID, then... well, I've
> not seen a situation
> where ID is necessary for form elements, but issue
> them a common NAME as
> well and you should be fine.
> 
> Let me know if you (not Scott) still have questions
> or problems.
> 
> -Peter
>   -----Original Message-----
>   From: javascript-admin at LaTech.edu
> [mailto:javascript-admin at LaTech.edu]On
> Behalf Of SnarfLT at aol.com
>   Sent: Friday, May 10, 2002 5:29 PM
>   To: javascript at LaTech.edu
>   Subject: [Javascript] radio button, check box
> check all or none
> 
> 
>   I believe he's wanting to set all checkboxes with
> a single ID for all
> elements.  This is not possible.  You can use an ID
> for only one element on
> a webpage..  So in order to use Peter's suggestion
> you'll need to set each
> to have a different id.
> 
>   -Scott
> 


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com



More information about the Javascript mailing list