/ Published in: JavaScript
![](/img/icon_sav.png?v3)
Removes default value on focus and replaces on blur
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
onblur="if (this.value == '') {this.value = 'youDefaultValue';}" onfocus="if (this.value == 'yourDefaultValue') {this.value = '';}"
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)