I want to dynamically add a textbox to a span or div or whatever.. I’m doing this:
$('#optionsArea').append('<input type="text" class="q1Options" name="q1Options" data-theme="b" value="" />');
This works however, the textboxes do not come in as a JQ Mobile style text box… I know that the refresh command is used on most form elements…but have tried it with .text and .textbox and couldnt get it to change.
Can someone tell me how to add these as JQMobile textboxes.
I found the answer — sorry for posting prematurely (I can delete this if it is wished or it might be good to leave it up as its not immediately apparent) –unless you actually read the docs 🙂
Calling
does the trick!
http://jquerymobile.com/demos/1.0/docs/forms/textinputs/index.html — Bottom of this page is where I found it.