jquery function to set check radio button selected code example
Example 1: if radio checked jquery
$('#element').click(function() {
if($('#radio_button').is(':checked')) { alert("it's checked"); }
});
Example 2: How can I know which radio button is selected via jQuery
if ($('input[name="radioName"]:checked', '#myForm').length) {
//Yes, it's checked!
}