[jQuery] Re: Get the value of a radio button ?

2007-10-16 Thread Mike Alsup
One option would be to use the form plugin: var value = $('[name=othersTransLInk]').fieldValue(); This will return the value of the selected radio. Mike I have a radio button like this one: input type=radio name=othersTransLink value=familiale class=radionbsp;Lien familiale input

[jQuery] Re: Get the value of a radio button ?

2007-10-16 Thread debussy007
I integrated the form plugin. I tried the following : $('[name=othersTransLink]').fieldValue() But it return me an empty string. I do not have to specify the form or something ? Something is missing. malsup wrote: One option would be to use the form plugin: var value =

[jQuery] Re: Get the value of a radio button ?

2007-10-16 Thread Karl Swedberg
You could also get the value without the Form plugin with this: $('input[name=othersTransLink]:checked').val() --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 16, 2007, at 10:32 AM, debussy007 wrote: I integrated the form plugin. I

[jQuery] Re: Get the value of a radio button ?

2007-10-16 Thread debussy007
Thank you both of you !!! :-)) Dan G. Switzer, II wrote: I integrated the form plugin. I tried the following : $('[name=othersTransLink]').fieldValue() But it return me an empty string. I do not have to specify the form or something ? Something is missing. If you're using a

[jQuery] Re: Get the value of a radio button ?

2007-10-16 Thread debussy007
The solution with the Form plugin works now, but I tried without the form plugin with your code but it returns null Karl Swedberg-2 wrote: You could also get the value without the Form plugin with this: $('input[name=othersTransLink]:checked').val() --Karl _

[jQuery] Re: Get the value of a radio button ?

2007-10-16 Thread debussy007
Oh ok, for some reason I have to add @ before name, because I use a version below 1.2. Thank you ! debussy007 wrote: The solution with the Form plugin works now, but I tried without the form plugin with your code but it returns null Karl Swedberg-2 wrote: You could also get the

[jQuery] Re: Get the value of a radio button ?

2007-10-16 Thread Pyrolupus
You could also use the :checked selector: $('input[name=othersTransLink]:checked').val() Pyro On Oct 16, 10:11 am, Mike Alsup [EMAIL PROTECTED] wrote: One option would be to use the form plugin: var value = $('[name=othersTransLInk]').fieldValue(); This will return the value of the

[jQuery] Re: Get the value of a radio button ?

2007-10-16 Thread Pyrolupus
Dang. I *hate* the delay that sometimes comes into play when posting to Google Groups. I mean, it makes it look like I ignored the fact that there were multiple similar responses that read basically the same. On closer look, it appears that my response has an earlier datestamp than many of the