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
});
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
});
set dropdown in jquery
$('select[name^="salesrep"] option[value="Bruce Jones"]').attr("selected","selected");
how to set dropdown value in jquery
$("#comboboxid").val(yourvalue).trigger("chosen:updated");
change value of drop down using jquery
$('#ddlID').val('New_OptionValue').change()
jQuery change select value
$("#mySelectElementID").val("my_new_value"); //change selected option/value with jQuery
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us