$('input[name="name_of_your_radiobutton"]:checked').val();
var value = $('input[name="name_of_your_radiobutton"]:checked').val();
$('form input[type=radio]:checked').val();
$('input[name="name_of_your_radiobutton"]:checked').val();
$("input[name=mygroup][value=" + value + "]").prop('checked', true);
$('#myForm input').on('change', function() {
alert($('input[name=radioName]:checked', '#myForm').val());
});
$("#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