set dropdown in jquery

JavaScript
$('select[name^="salesrep"] option[value="Bruce Jones"]').attr("selected","selected");$('select[name^="salesrep"] option:selected').attr("selected",null);
Source

Also in JavaScript: