PDA

View Full Version : Text box


d-machine
03-08-2009, 01:02 PM
I have a simple text box with value: "Write in here"
How can I delete the value of the text box when the mouse click on the text box in order to write in it?

Thanks

jscheuer1
03-08-2009, 01:07 PM
<input type="text" value="Write in here" onfocus="if(this.value == 'Write in here') this.value = '';">

d-machine
03-08-2009, 01:36 PM
Thank you very much!