I have the following select box.
Instead of setting the selected
attribute, just use .val("2").
See here: jsFiddle
Anyway, this worked well on IE9 if you want to mantain the "SELECTED"
attribute
$("select#selId").find("option#2").attr("selected", true);
http://jsfiddle.net/cqENs/
You could use val() to set the option instead - see Change the selected value of a drop-down list with jQuery
change this one
$("select#selId").find("option#2").attr("selected", "selected");
into this one
$("select#selId").find("option#2").attr("selected", true);