HTML Form input boxes clear when clicked
Friday, August 21st, 2009Here’s a quick tip on clearing the default text from text boxes in a form.
First of all you can add the default text to a input box by declaring a value:
<input type=”text” value=”Enter Name” />
Now we can add an ‘onfocus’ event that will delete this value when the box is clicked, essentially by replacing it [...]