1

I want if the field is visible/display: block then only validation works else if the field is hide/display:none then validation should stop working.

I hide/show fields with jquery on any click and onchange events.

Any solution?

2
  • what have you tried?
    – Richard Seal
    Oct 27, 2020 at 14:27
  • @Richard Seal - I don't know how we can achieve this coz if we check required/Mandatory in the field then the validation appears but I want when my field is not visible then validation did not come after a click on the Next/Submit button.
    – Udit
    Oct 27, 2020 at 14:51

0

Your Answer

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

Browse other questions tagged or ask your own question.