0

我有一个文本框,其默认值在焦点上消失:

<input data-role="none" class="search-box" id="addressLookupTxt" type="text" value="City and State or Zipcode" onfocus="clearText(this)" onblur="clearText(this)" />

输入文本(即 90210)并提交值后,当我返回此输入的页面时,提交的值仍然存在。

我怎样才能刷新这个值,所以当我返回时它是默认值?

$('#CheckInPage').live('pagebeforeshow', function(toPage, fromPage){});
4

1 回答 1

1

使用 jquery 移动使用时,不建议在默认/索引页面中创建多个页面

 <a href="prefetchThisPage.html" data-prefetch> ... </a>

这将负责发回您的页面

查看缓存页面

于 2012-11-13T21:03:51.167 回答