Open GoogleCodeExporter opened 8 years ago
That solution works, thanks! Should be merged to the original branch.
Original comment by bmate...@gmail.com
on 16 May 2014 at 1:53
[deleted comment]
How to use it if value is different then the list shown.
eg.
<option value='1'>USA</option>
<option value='2'>UK</option>
Original comment by ashokpun...@gmail.com
on 25 May 2014 at 5:35
This solution doesn't work for me (jQuery Mobile), this do (tested).
case 'select-one':
$(element).val(value).attr('selected', true);
$(element).selectmenu('refresh', true);
break;
For the select-multiple
case 'select-multiple':
var values = value.constructor == Array ? value : [value];
for (var j = 0; j < values.length; j++) {
$(element).val(value[j]).attr('selected', true);
}
$(element).selectmenu('refresh', true);
break;
Original comment by fvergni...@gmail.com
on 18 Jan 2015 at 8:57
Original issue reported on code.google.com by
garth.fi...@agilex.com
on 18 Dec 2013 at 7:59