how to get checked value of radio button in variable \in jquery code example
Example 1: jquery get value of radio input
$('input[name="name_of_your_radiobutton"]:checked').val();
Example 2: get value of checked radio button jquery
$('form input[type=radio]:checked').val();