Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

set select option as selected jquery

$(document).ready(function() {
    $("#gate option[value='Gateway 2']").prop('selected', true);
    // you need to specify id of combo to set right combo, if more than one combo
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #select #option #selected #jquery
ADD COMMENT
Topic
Name
5+7 =