Tombol radio jQuery diperiksa pada pemuatan halaman

<input type='radio' name='gender' value='Male'>
<input type='radio' name='gender' value='Female'>
  ------------------------------------------
<script>
$(function() {
    var $radios = $('input:radio[name=gender]');
    if($radios.is(':checked') === false) {
        $radios.filter('[value=Male]').prop('checked', true);
    }
});
</script>
7uc1f3r