[Proto-Scripty] Re: Select form elements by name

2009-04-01 Thread Walter Lee Davis
$$('#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

[Proto-Scripty] Re: Select form elements by name

2009-04-01 Thread buda
$$('#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"]'); --~--~-~--~~~-

[Proto-Scripty] Re: Select form elements by name

2009-04-01 Thread RobG
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

[Proto-Scripty] Re: Select form elements by name

2009-04-02 Thread ColinFine
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 --~--~-~--~~-

[Proto-Scripty] Re: Select form elements by name

2009-04-02 Thread buda
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