adding radio buttons to group 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');