Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery select radio

$(function() {
    var $radios = $('input:radio[name=gender]');
    if($radios.is(':checked') === false) {
        $radios.filter('[value=Male]').prop('checked', true);
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #select #radio
ADD COMMENT
Topic
Name
2+3 =