$$('#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 thro
$$('#billship input:radio[name="shipType"]');
On 1 апр, 21:43, 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"]');
--~--~-~--~~~-
On Apr 2, 4:43 am, 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"]');
All of the following will return a live NodeList:
$('billship').shipType;
or
On Apr 1, 8:44 pm, buda wrote:
> $$('#billship input:radio[name="shipType"]');
>
Buda, are you saying that $$ (and hence CSS selectors) understand the
notation "input:radio" for "input[type='radio']"? Because I cannot
find any evidence that this is so.
Colin
--~--~-~--~~-
was wrong, I'm sorry - this is right $$('#billship input[type="radio"]
[name="shipType"]')
On 2 апр, 14:29, ColinFine wrote:
> On Apr 1, 8:44 pm, buda wrote:
>
> > $$('#billship input:radio[name="shipType"]');
>
> Buda, are you saying that $$ (and hence CSS selectors) understand the
> notation