Was debugging some code that was broken due to jquery 1.6 update, and found this call for Jquery dropdown.val
1 |
$("#dropDownSelect option[text=" + myText +"]").attr("selected","selected") ; |
Not working anymore but a simple fix of changing it to
1 |
$("#dropDownSelect option[text=" + myText +"]").prop("selected",true) ; |
This does the trick, for more on prop take a look at the api of jquery http://api.jquery.com/prop/
Leave A Comment