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
Can someone please help ?
Thanks in advance 🙂
- The topic ‘[Plugin: Contact Form 7] How to change the validation style from scripts.js ?’ is closed to new replies.