jQuery Obtener valor de la entrada de radio
$('input[name="name_of_your_radiobutton"]:checked').val();
Smoggy Snake
$('input[name="name_of_your_radiobutton"]:checked').val();
// jQuery version 1.6 or above use:
$("#myRadioID").prop("checked", true);
//jQuery versions below 1.6 use:
$("#myRadioID").attr('checked', 'checked');
By LOVE
Here , name=Gender is the name attribute value of the radio button
$("input[name='Gender']:checked").val()
$('#radio-button-id').click(function() {
if($('#radio-button-id').is(':checked'))
{
//input where you put a value
$('#program').val("radio-button-text");
}
});
var value = $('input[name="name_of_your_radiobutton"]:checked').val();
$('#myForm input').on('change', function() {
alert($('input[name=radioName]:checked', '#myForm').val());
});