how to set a value in select dropdown code example
Example 1: set dropdown in jquery
$('select[name^="salesrep"] option[value="Bruce Jones"]').attr("selected","selected");
Example 2: set dropdown in jquery
$('select[name^="salesrep"] option:selected').attr("selected",null);