Onlock clear value for Input


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <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" />

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.