JQuery Get Value of Radio Input
$('input[name="name_of_your_radiobutton"]:checked').val();
Smoggy Snake
$('input[name="name_of_your_radiobutton"]:checked').val();
By LOVE
Here , name=Gender is the name attribute value of the radio button
$("input[name='Gender']:checked").val()
var value = $('input[name="name_of_your_radiobutton"]:checked').val();
$(document).ready(function(){
$('#submit_button').click(function() {
if (!$("input[name='name']:checked").val()) {
alert('Nothing is checked!');
return false;
}
else {
alert('One of the radio buttons is checked!');
}
});
});
$('form input[type=radio]:checked').val();
$('input[name="name_of_your_radiobutton"]:checked').val();