Answers for "how to group radio buttons in html"

55

radio buttons html

<input type="radio" name="gender" value="male"> Male<br>
<input type="radio" name="gender" value="female"> Female<br>
<input type="radio" name="gender" value="other"> Other
Posted by: Guest on February-09-2020
0

set radio button group value

var value = 5;
$("input[name=mygroup][value=" + value + "]").attr('checked', 'checked');
Posted by: Guest on May-06-2021
0

set radio button group value

$("input[name=mygroup]").val([5]);
Posted by: Guest on May-06-2021

Browse Popular Code Answers by Language