Return to Snippet

Revision: 3443
at March 19, 2009 18:19 by penguin999


Updated Code
// for older jquery
var var_name = $("input[@name='radio_name']:checked").val();

// for jquery 1.3
var var_name = $("input[name='radio_name']:checked").val();

Revision: 3442
at October 29, 2008 20:03 by penguin999


Updated Code
Both of these versions work for me:

var var_name = $("input[@name=radio_name]:checked").val();

var var_name = $("input[@name='radio_name']:checked").val();

Revision: 3441
at July 24, 2007 11:56 by penguin999


Initial Code
var var_name = $("input[@name=radio_name]:checked").val();

Initial URL

                                

Initial Description

                                

Initial Title
Radio button values using jquery

Initial Tags
jquery

Initial Language
JavaScript