xxxxxxxxxx
$("#id_of_select_input").val('value of option to set as selected');
xxxxxxxxxx
$(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
});
xxxxxxxxxx
// Assuming the select element has an id of "mySelect"
$('#mySelect').val('desiredValue');
xxxxxxxxxx
<select onchange="getval(this);">
<option value="1">One</option>
<option value="2">Two</option>
</select>
Run code snippet
xxxxxxxxxx
// Assuming you have a <select> element with id "mySelect"
// and you want to set the value to "option2"
// Using the jQuery selector to select the element by its id
var selectElement = $('#mySelect');
// Setting the value of the <select> element using val() function
selectElement.val('option2');