Posted By

eldanieldeepak on 09/24/11


Tagged

clear input focus field


Versions (?)

Clear Field on Focus


 / Published in: JavaScript
 

URL: http://css-tricks.com/snippets/javascript/clear-field-on-focus/

  1. <input type="text" onfocus="if(this.value == 'value') { this.value = ''; }" value="value" />

Report this snippet  

You need to login to post a comment.