The following code failed when I upgraded to 1.4.1, and worked ok when I rolled back to 1.3.2.
var ddlCountry = $("#<%= this.ddlCountry.ClientID %>");
if (ddlCountry.val() == "") {
ddlCountry.val(address.country);
ddlCountry.change();
}
BTW the problem is that the value of the <select>
list is never set.
Yes, this is all wrapped up in a $(document).ready
:)
EDIT: For reference this is the code I used:
ddlCountry.find("option").each(function() {
if ($(this).text() == address.country) {
ddlCountry.val($(this).val());
}
});