SyntaxFix
Write A Post
Hire A Developer
Questions
You could search all the option values until it finds the correct one.
var defaultVal = "Country"; $("#select").find("option").each(function () { if ($(this).val() == defaultVal) { $(this).prop("selected", "selected"); } });