ตั้งค่าเลือกตัวเลือกที่ที่เลือกไว้ 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
});
jQuery เลือกเปลี่ยนค่า
$("#mySelectElementID").val("my_new_value"); //change selected option/value with jQuery
dropdown อกตัวเลือกการเลือกเปลี่ยนเหตุการณ์ใน jquery
$("select [name='element_name']").change(function(){
// condition goes here
});
เปลี่ยนค่าของลดลงลงไปโดยใช้ jquery
$('#ddlID').val('New_OptionValue').change()