Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clear text box on entry

Status
Not open for further replies.

CTR

Technical User
Nov 15, 2001
42
US
I have a text box in a form that is loaded with the value stored in a database. The default value is "Not Read". Is there a way for this text to clear from the text box when the user simply clicks in the box? _____________

Cliff
 
Code:
<form name=&quot;frm&quot;>
<input type=&quot;text&quot; name=&quot;read&quot; value=&quot;Not Read&quot; onFocus=&quot;if (document.frm.read.value == 'Not Read') { document.frm.read.value = '' }&quot;>
</form>
--------------------------------------------------
Goals are dreams with deadlines
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top