[Snippet] Clearing forms with Javascript
Posted on March 29, 2011
When creating forms on a website it is helpful to place descriptive text with some of the form fields to help the user understand what they should type in the box. I can never remember the Javascript to do it
- <input value="Username" onclick="this.value=''" type="text">




