So I have a textfield in a JSP page. When you launch the page, the textfield consists the text "Enter Account Name." Right now, the value of the textfield is "Enter Account Name."
What I want is...
"Enter Account Name"
to be rewritten but I want no value in the textfield. This is the code I have so far.
<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>