I am writing jQuery Mobile App. I am changing drop-down selected option via below statement:- $(\"#DataBaseNames\").val(db);
I am sure about correct db value being
I checked this link and found it working for me. Try this:
var myselect = $("select#YourDropdownID"); myselect[0].selectedIndex =0; myselect.selectmenu("refresh");