set radio default value before after site:stackoverflow.com code example
Example 1: jquery get value radio by name
var value = $('input[name="name_of_your_radiobutton"]:checked').val();
Example 2: auto select radio button
<input type="radio" name="imgsel" value="" checked>
Example 3: radio by default selected
checked="checked"