Hi,
i can't select an "option" in a select list from jquery mobile, although i manage to do it in a regular jquery page.
i've got a placeholder at the beginning :
- <select name="select-choice-1" id="select-choice-1">
- <option>Loading...</option>
- </select>
then i load the titles from flickr :
- function preload_titles() {
- return $.Deferred(function(dfd) {
- //...
- dfd.resolve();
- }).promise();
- }
-
- $.when(preload_titles()).done(function(){
- //alert("ok");
- $("#select-choice-1 option:eq(2)").prop("selected",true);
- });
but i still have "loading" even after the alert is launched.
Isn't it possible to select an option from a select list in jquery mobile?
Thanks for your answer