$('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();
$('form input[type=radio]:checked').val();
$('#myForm input').on('change', function() {
alert($('input[name=radioName]:checked', '#myForm').val());
});
//id you have a label to your checkbox use this one
$("input[type='radio']:checked").parent().text()
$("#myform input[type='radio']:checked").val();
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<form id="myForm">
<input type="radio" name="radioName" value="1" /> 1 <br />
<input type="radio" name="radioName" value="2" /> 2 <br />
<input type="radio" name="radioName" value="3" /> 3 <br />
</form>
Run code snippetHide results