the Forum

Form placeholders - Using Javascript

Posted on June 29, 2012 by Michael Rosario
Total Posts: 33  |  Join date: 03-12-11

Since the placeholder parameter is still not 100% supported in all browsers, here is an alternative:
<input type="text" name="Email" onfocus="if (this.value == 'Your email address...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Your email address...';}" value="Your email address..." /> 

Tags: There are no tags for this entry.

There are no answers yet.  Add yours below.

add your answers here
comments powered by Disqus