How to set validation for style="display: none;" element using `Jquery Form validator`?

502 views Asked by At

How to set validation for style="display: none;" element using Jquery Form validator sample.

I have form with tabs in which tab which style="display: none;" applied to not activated tab. my form is being submitted even if other tab element validation is not true.

1

There are 1 answers

0
Caike Bispo On

Elements with display none cold not be validated, to solve this problem you can add style visibility: hidden on your HTML element.

Eg: <input type='text' style="visibility: hidden">