我有一个文本框,其默认值在焦点上消失:
<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){});