PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Clearing Default Field Values

  1. R Chilton
    Member

    I've read the post on how to clear the default field values and it works great. But how do I handle it when I already have a css class name such as; gf_left_third - how do add the clearit css class name but also keep the gf_left_third.

    Thanks for the help

    Posted 9 years ago on Friday May 18, 2012 | Permalink
  2. All you would have to do is put a space between the two, so in your CSS input you would have:

    gf_left_third clearit

    Posted 9 years ago on Friday May 18, 2012 | Permalink
  3. R Chilton
    Member

    I am having problems with this function working properly. For example on this website

    http://www.eowc.net

    When you click the box the cursor goes to the end of the text in the box and does not clear it out when you start typing. I have this method on multiple forms with the same results.

    Thanks for the help.

    Posted 9 years ago on Thursday July 19, 2012 | Permalink
  4. R Chilton
    Member

    As a note the clearit works fine on one of my sites when I am not using one of the following types of functions with it

    gf_left_third

    Thanks
    Renee

    Posted 9 years ago on Thursday July 19, 2012 | Permalink
  5. I took a quick look in your source and don't see any jQuery references to go along with the clearit class for it to function - did you include those? These 3 js references all give 404 errors BTW: Screenshot

    Posted 9 years ago on Thursday July 19, 2012 | Permalink
  6. R Chilton
    Member

    I did not. I'm pretty green with my jquery. I honestly didn't know I needed to. Any help would be great.

    Thanks
    Renee

    Posted 9 years ago on Thursday July 19, 2012 | Permalink
  7. Have a look at this tutorial:
    http://www.gravityhelp.com/clearing-default-form-field-values-with-jquery/

    Posted 9 years ago on Thursday July 19, 2012 | Permalink
  8. R Chilton
    Member

    Perfect.... Just inserted that bit of code and it works! Thanks so much for the help.

    Posted 9 years ago on Friday July 20, 2012 | Permalink

This topic has been resolved and has been closed to new replies.