/ Published in: jQuery
URL: http://buildinternet.com/2009/01/changing-form-input-styles-on-focus-with-jquery/
Expand |
Embed | Plain Text
$(document).ready(function() { $('.rmv-dft-val').click( function() { if (this.value == this.defaultValue) { this.value = ''; } } ); $('.rmv-dft-val').blur( function() { if (this.value == '') { this.value = this.defaultValue; } } ); });
You need to login to post a comment.
