Set selected option of select box

This definitely should work. Here’s a demo. Make sure you have placed your code into a $(document).ready:

$(function() {
    $("#gate").val('gateway_2');
});

Leave a Comment