【发布时间】:2014-03-27 22:34:00
【问题描述】:
所以我在 JSP 页面中有一个文本字段。当您启动页面时,文本字段包含文本“输入帐户名称”。现在,文本字段的值是“输入帐户名称”。
我想要的是...
"Enter Account Name" 被重写,但我希望文本字段中没有任何价值。这是我到目前为止的代码。
<s:textfield name="searchBean.keyword" size="25" id="inpKeyword" title="Enter Account Name" style="color:#888;" value="Enter Account Name" onfocus="if(this.value=='Enter Account Name') this.value='';" onblur="inputBlur(this)"/></li>
【问题讨论】: