चयनित के रूप में चयन विकल्प सेट करें.
$(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
में लटकती विकल्प चयन परिवर्तन घटना.
$("select [name='element_name']").change(function(){
// condition goes here
});
का उपयोग कर ड्रॉप डाउन का मूल्य बदलें.
$('#ddlID').val('New_OptionValue').change()