Clear Input onclick / onfocus


/ Published in: HTML
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" />

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.