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
> _________________
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
> 
> 
> 
> On Oct 16, 2007, at 10:32 AM, debussy007 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.
>>
>>
>>
>> malsup wrote:
>>>
>>> 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="radio">&nbsp;Lien familiale
>>>> <input type="radio" name="othersTransLink" value="étroit"
>>>> class="radio">&nbsp;Lien étroit
>>>> <input type="radio" name="othersTransLink" value="Intérêt direct ou
>>>> indirect" class="radio">&nbsp;Intérêt direct ou indirect
>>>>
>>>> How can I have the value of the checked radio button ?
>>>> Is this possible ?
>>>
>>>
>>
>> --  
>> View this message in context: http://www.nabble.com/Get-the-value- 
>> of-a-radio-button---tf4634279s27240.html#a13234756
>> Sent from the jQuery General Discussion mailing list archive at  
>> Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Get-the-value-of-a-radio-button---tf4634279s27240.html#a13235410
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to