Posted By

nshakin on 11/06/12


Tagged


Versions (?)

Remove Input Value Text On Focus


 / Published in: JavaScript
 

Removes default value on focus and replaces on blur

  1. onblur="if (this.value == '') {this.value = 'youDefaultValue';}" onfocus="if (this.value == 'yourDefaultValue') {this.value = '';}"

Report this snippet  

You need to login to post a comment.