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.

Changing Class When Value Does Not Equal Default

  1. I have a form that I'm using the 'clearit' mehod to clear default values from the form.

    I'd like to add a class (probably using jQuery) to the input when the value is NOT equal to the default value.

    Can anyone give me some guidance on how this should be done?

    Posted 11 years ago on Monday May 21, 2012 | Permalink
  2. What is your use case here? Do you have a link to your form so I can see what you are trying to do visually?

    Posted 11 years ago on Monday May 21, 2012 | Permalink
  3. http://beta.designbigger.com

    The form in question is the contact form at the bottom right.

    Posted 11 years ago on Monday May 21, 2012 | Permalink
  4. Hi Chris,

    Give this a shot: http://pastie.org/3947038

    Posted 11 years ago on Monday May 21, 2012 | Permalink
  5. David,

    That worked great!

    Thanks!

    Posted 11 years ago on Monday May 21, 2012 | Permalink
  6. Dave is the man. Glad that helped.

    Posted 11 years ago on Tuesday May 22, 2012 | Permalink

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