Do you know how to program SELECT dynamically?
Hi, everyone.
I have a problem.
I could select the number when I clicked the SELECTED button using jQuery.
But I couldn't select using jQuery mobile.
- <select id="s">
- <option value="1">1</option>
- <option value="2">2</option>
- <option value="3">3</option>
- </select>
- <input type="text" id="t">
- <input type="button" value="SELECTED" onclick="$('#s').val($('#t').val());">
When we add items to a listview, we have to call the refresh method.
- $('ul').listview('refresh');
jQuery mobile's select element is not native element.
I think I need to call like that.
But I couldn't find the method.
Please help me!