JQuery Selecione o valor do botão de rádio verificado
$('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');
$('#radio-button-id').click(function() {
if($('#radio-button-id').is(':checked'))
{
//input where you put a value
$('#program').val("radio-button-text");
}
});
$('input:radio[name="postage"]').change(function(){
if ($(this).val() == 'Yes') {
//true
}
else {
//false
}
});
$(function() {
var $radios = $('input:radio[name=gender]');
if($radios.is(':checked') === false) {
$radios.filter('[value=Male]').prop('checked', true);
}
});
$(".nameOfTheClass").prop('checked', true);