1

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 Answer 1

1

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">

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.