set radio button group value code example
Example 1: set radio button group value
$("input[name=mygroup][value=" + value + "]").prop('checked', true);
Example 2: set radio button group value
var value = 5;
$("input[name=mygroup][value=" + value + "]").attr('checked', 'checked');
Example 3: set radio button group value
$("input[name=mygroup]").val([5]);