Support » Plugin: Contact Form 7 » [Plugin: Contact Form 7] How to change the validation style from scripts.js ?

  • Resolved jaseemts

    (@cooljaz124)


    Hi,

    This is my contact form structure

    <div><!-- Grand Parent -->
      <span class="wpcf7-form-control-wrap email-496">
        <input type="text" size="40" class="wpcf7-text wpcf7-validates-as-email email required hire-email" value="" name="email-496" title="*email">
      </span>
    </div>

    For each input field, I have a span element as parent( which contact form 7 appends ) and a div as Grand Parent.

    What I need to achieve is, to change the background color of the GrandParent div whenver there is a validation error.

    In scripts.js, i have edited from line 127

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Can someone please help ?

    Thanks in advance 🙂
    Jaz

    http://wordpress.org/extend/plugins/contact-form-7/

Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Plugin: Contact Form 7] How to change the validation style from scripts.js ?’ is closed to new replies.