PDA

View Full Version : clearing a txt box


Bluemonkey
02-04-2003, 01:12 PM
how can i clear a text field in my form when a user clicks on it.
ie it has a defult value attached to it but i want that to go wen u click on it.

thanks

arnyinc
02-04-2003, 01:28 PM
<input type="text" name="user_input" onclick="this.value=''" value="Enter your text here">

Bluemonkey
02-04-2003, 01:59 PM
thank you very much for the help