/ Published in: JavaScript

In regards to progressive enhancement, see also the [jQuery version](http://snipplr.com/view/48275/default-value-for-input-fields-jquery-version/).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
onfocus="if(this.value == this.defaultValue){ this.value='' };" onblur="if(this.value == ''){ this.value=this.defaultValue };"
Comments
