• Resolved KasparP

    (@kasparp)


    Hi,

    How to change the “by default” text in the box where people can write their e-mails so that it will disappear when clicked and started typing?

    The example would be your own http://www.dreamgrow.com box, where the text goes lighter after clicking.

    Right now, without editing the plugin settings, if one wants to type in their email, the typing starts from the end of the original text, for example”Enter Your Aadress” and the subscribed address looks like this “Enter Your AadressTim@…com”

    Thanks for your help!

    http://wordpress.org/extend/plugins/dreamgrow-scroll-triggered-box/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The easiest way is to use a HTML5 placeholder:

    <input type="email" name="email" placeholder="XXX" />

    Second option without jquery:

    <input type="text" name="email" onblur="if (this.value == '') {this.value = 'XXX';}"
    onfocus="if(this.value == 'XXX') {this.value = '';}" value="XXX" />

    Thread Starter KasparP

    (@kasparp)

    Thanks for your quick help!

    Resolved

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Email address box text’ is closed to new replies.