jQuery change select value code example
Example 1: change value of drop down using jquery
$('#ddlID').val('New_OptionValue').change()
Example 2: jQuery change select value
$("#mySelectElementID").val("my_new_value"); //change selected option/value with jQuery
Example 3: click select option to update div jquery
$('#choose').change(function(event) {
$.post('info.php', { selected: $('#choose').val() },
function(data) {
$('#update').html(data);
}
);
});
Example 4: jquery set select value
$("div.id_100 select").val("val2");