Input Field Auto Hide Value


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



Copy this code and paste it in your HTML
  1. <input type="text" name="s" id="widget-s" value="Search" onblur="if (this.value == '') {this.value = 'Search';}" onfocus="if (this.value == 'Search') {this.value = '';}">

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.