$$('#billship input[type="radio"][name="shipType"]')

or

$('billship').select('input[type="radio"][name="shipType"]');

The second one is probably faster, since it doesn't have to slog  
through the entire page.

Pretty much anything that you can target with CSS3 selectors can be  
gotten at through $$ or select (which uses the same syntax).

Walter

On Apr 1, 2009, at 2:43 PM, Diodeus wrote:

>
> What's the Prototype equivalent of this jQuery code?
>
> I would like to select all of the radio button with a certain name.
>
> $('#billship input:radio[name="shipType"]');
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to