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"> Lien familiale
<input type="radio" name="othersTransLink" value="étroit"
class="radio"> Lien étroit
<input type="radio" name="othersTransLink" value="Intérêt direct ou
indirect" class="radio"> 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.