how to set selected option in dropdown using jquery code example
Example 1: set dropdown in jquery
$('select[name^="salesrep"] option[value="Bruce Jones"]').attr("selected","selected");
Example 2: how to set the value of dropdown
BY LOVE
$("#ddlPartnerType").val(0);
Example 3: set dropdown in jquery
$('select[name^="salesrep"] option:selected').attr("selected",null);