Reputation: 1172
I have a jquery mobile list. This list is populated with data.
I want to select a default item dynamically (through jquery).
This question has been asked many times but I have tried all the resolutions given but unable to figure out this problem.
The code is here http://jsfiddle.net/nMR85/2/
Upvotes: 0
Views: 503
Reputation: 5253
One thing i noticed is that you had two ids for your select menu.
I also changed your JQuery to $('#select-choice-a').val('Africa/Tunis').selectmenu('refresh');
Here is a jsFiddle showing it works http://jsfiddle.net/codaniel/nMR85/4/
Upvotes: 1