For those who want the simplest solution, use the built-in functions!
<input type="text" name="email" value="Email Address" placeholder="Email Address" onfocus="if(this.value==this.placeholder) this.value=''" onblur="if(this.value=='') this.value=this.placeholder">
Tested in chrome and IE8 :)
Note. I use this with lots of javascript to validate input and provide feedback inside the field itself, changing the value and placeholder at runtime.
vahanpwns May 2 '13 at 8:40 2013-05-02 08:40
source share