Auto hide input field on focus


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



Copy this code and paste it in your HTML
  1. onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'Question...':this.value;" value="Question..."

Report this snippet


Comments


You need to login to view comments.