I have tried numerous things. Nothing seems to work.
for example:
$('#select').val(myval).selectmenu('refresh');
$('#select').val(myval).attr('selected', 'selected');
$('#select').val(myval).prop('selected',true);
$('#select').val(myval).selectmenu('refresh');
Just make sure myval
actually matches a value in your options: <option value="myval">My value</option>
http://jquerymobile.com/demos/1.0a4.1/docs/forms/forms-selects.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With