WordPress.org

Ready to get started?Download WordPress

Forums

Dreamgrow Scroll Triggered Box
[resolved] Email address box text (4 posts)

  1. KasparP
    Member
    Posted 1 year ago #

    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/

  2. madisn
    Member
    Plugin Author

    Posted 1 year ago #

    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" />
  3. KasparP
    Member
    Posted 1 year ago #

    Thanks for your quick help!

  4. madisn
    Member
    Plugin Author

    Posted 1 year ago #

    Resolved

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.