Return to Snippet

Revision: 53059
at November 11, 2011 07:50 by bubaphex


Initial Code
<input type="text" name="field-name-here" onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'Enter Email To Get Updates':this.value;" value="Enter Email To Get Updates" />

Initial URL
http://www.erummunir.com/240/clear-text-on-input-field-on-click

Initial Description

                                

Initial Title
Onlock clear value for Input

Initial Tags
js, html

Initial Language
JavaScript