I have the following select box.
1
change this one
$("select#selId").find("option#2").attr("selected", "selected");
into this one
$("select#selId").find("option#2").attr("selected", true);