Auto clear input field
Solved/Closed
Related:
- Clear input field javascript
- How to input @ in laptop - Guide
- Disable javascript chrome - Guide
- How to disable javascript in tor - Guide
- Input phone password - Phones, PDA & GPS Forum
- Google input tools - Download - Mouse and keyboard
1 response
zerokilled
Posts
9
Registration date
Monday January 19, 2009
Status
Member
Last seen
January 22, 2009
1
Jan 19, 2009 at 11:22 PM
Jan 19, 2009 at 11:22 PM
well, it actually is javascript. html don't do anything by itself. that is, html document are static and javascript add the dynamic behavior. the following is a sample code with inline javascript:
<input type='text' value='Type something...' onclick='this.value = "";' />
May 22, 2010 at 09:24 PM
I notice this does not happen on your Name... and Email... below. Am I missing something? Is there some other code I need?
Your help is much appreciated.
Sep 19, 2010 at 06:19 PM
<input type='text' value='Type something...' onclick="if (!clicked) { this.value = ''; clicked=true; } " />
Aug 21, 2015 at 02:18 AM
Jan 14, 2016 at 09:13 PM
<input type='text' value='Type something...' onclick='this.value = "";' /