[jQuery] Value of currently selected radio button

[jQuery] Value of currently selected radio button

By the way, is there documentation about any of these extra goodies
anywhere? That's not in the API and I don't see it anywhere else.
<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
andy@icglink.com
615.370.1530 x737
--------------//--------->
-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On
Behalf Of Brandon Aaron
Sent: Monday, December 18, 2006 2:39 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Value of currently selected radio button
Try the :selected selector like so:
$('input.radioMe:selected').val()
Likewise you could just use the name attribute of the radio input:
$('input[@name=radioName]:selected');
Untested but I believe it should work according to a previous thread
today on this topic.
--
Brandon Aaron






















    • Topic Participants

    • andy