If you set the value , this will work, in jQuery 1.4 there should be a value different from the text, for example:
<select id="ddlCountry"> <option value="1">A</option> <option value="2">B</option> </select>
In jQuery 1.3, this works: $("#ddlCountry").val("A")
In 1.4 it should not be: $("#ddlCountry").val("1")
Alternatively, if you cannot change the drop-down list, you can search and select based on the text as follows:
ddlCountry.filter(function() { return $(this).text() == address.country; })[0].selected = true;
For reference, there has been a change to jQuery . From 1.4 notes:
.val ("...") by option or checkbox is no longer ambiguous (it will always select by value now, and not by text value). (Commit)
source share