Do you know how to program SELECT dynamically?

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.

  1. <select id="s">
  2. <option value="1">1</option>
  3. <option value="2">2</option>
  4. <option value="3">3</option>
  5. </select>

  6. <input type="text" id="t">
  7. <input type="button" value="SELECTED" onclick="$('#s').val($('#t').val());">

When we add items to a listview, we have to call the refresh method.
  1. $('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!