Dilberted
Dilberted

Reputation: 1172

Jquery Mobile - Unable to select the specific item from dropdown

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

Answers (1)

codaniel
codaniel

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

Related Questions