On Apr 2, 4:43 am, Diodeus <[email protected]> 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"]');
All of the following will return a live NodeList:
$('billship').shipType;
or
$('billship').Elements['shipType'];
or
$('billship').Elements.shipType;
If you want a static array:
$A($('billship').shipType);
--
Rob
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---