1Say you had radio buttons like these, for example:
2
3<input type='radio' name='gender' value='Male'>
4<input type='radio' name='gender' value='Female'>
5
6And you wanted to check the one with a value of "Male" onload if no radio is
7checked:
8
9$(function() {
10 var $radios = $('input:radio[name=gender]');
11 if($radios.is(':checked') === false) {
12 $radios.filter('[value=Male]').prop('checked', true);
13 }
14});