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