/ Published in: CSS
![](/img/icon_sav.png?v3)
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
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)