Reputation: 2339
I have a text box that has a default value that disappears onfocus:
<input data-role="none" class="search-box" id="addressLookupTxt" type="text" value="City and State or Zipcode" onfocus="clearText(this)" onblur="clearText(this)" />
After entering a text (ie 90210) and submitting the value, when i return to the page with this input, the submitted value is still present.
How can i refresh this value so its the default when i return?
$('#CheckInPage').live('pagebeforeshow', function(toPage, fromPage){});
Upvotes: 0
Views: 827
Reputation: 25080
it is not recommended to create multiple pages in your default/index page when using jquery mobile use
<a href="prefetchThisPage.html" data-prefetch> ... </a>
this will take care of posting back your pages
see caching pages
Upvotes: 1