Change

@name=

to

name=

The @attribute= syntax was deprecated in jQuery 1.2, removed in 1.3 (see
http://docs.jquery.com/Release:jQuery_1.3#Changes ) so your selector is
failing.

- Richard

On Thu, Apr 2, 2009 at 11:19 AM, echomrg <echo...@gmail.com> wrote:

>
> Hi all, i'm having a problem reading checked values from radio button:
> i have two sets of radio buttons and i need to read the value linked
> to each selected/checked button.
>
> Googling for answers i found this snippet:
>
> $("inp...@name='NAME']:checked").val()
>
> but it only works if there's just one set of buttons on the page.
> If there are more then one of them (the first in the html code) "takes
> charge" and all the buttons return the same value.
>
> You can find a test case here:
> http://www.kikentai.org/jquery/test.html
>
> Try fiddling around with the radio buttons before clicking the "click
> me!" button...
>
> Thanks for your help!
> Marcello

Reply via email to