/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<input type="text" id="textfield" name="EMAIL" value="enter your email address" onblur="if (this.value == '') {this.value = 'enter your email address';}" onfocus="if (this.value == 'enter your email address') {this.value = '';}" >