GezH
Programmer
- Aug 7, 2002
- 68
Hi all. I have a text input box, where we have some preset text value. When the user clicks in the box, the text disappears and they are free to write what they want, as below:
<input name="content" type="text" size="20" value="enter text" onclick="javascript:content.value=''" />
Easy right? But what if the textfield is a 'password' style, and we want to say 'enter password'? The text is displayed as asterixes!
Any advice appreciated!
<input name="content" type="text" size="20" value="enter text" onclick="javascript:content.value=''" />
Easy right? But what if the textfield is a 'password' style, and we want to say 'enter password'? The text is displayed as asterixes!
Any advice appreciated!