/ Published in: CSS

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('.removeVal').live("click focus", function() { if (this.value == this.defaultValue) { this.value = ''; $(this).removeClass("itl"); } }); $('.removeVal').live("blur", function() { if (this.value == '' || this.value == this.defaultValue) { this.value = this.defaultValue; $(this).addClass("itl"); } });
Comments
