I am having trouble setting the display text of a jQuery Mobile Text Input. The following is my code
$('#editPartyName').textinput();
$('#editPartyName').val(party.name);
The behavior is really weird, the first time the modal displays, the text input box is on a modal(jquery mobile simple dialog plugin), the text is in the input field on the modal just fine. However, the second time the modal is displayed the visual text in the input will be gone. When I check the value of the element though, alert($('#editPartyName).val()); The value is there and is correct. The text will just not display in the element. I am using JQM Beta 1. I have also tried to stick $('#editPartyName').textinput() after the val() declaration.
Anybody have any suggestions? Thank You!
.val("")and found calling.focus().blur()resolved it.