Ok, so for my HTML, I have this bootstrap crash and some form fields inside it.
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true"> <div class="panel panel-success"> <div class="panel-heading" role="tab" id="generalHeading"> <h4 class="panel-title">General</h4> </div> <div id="generalInfo" class="panel-collapse collapse in" role="tabpanel"> ... </div> </div> </div>
With several panels and, obviously, form fields in which ... are in the example above.
Then I get a jquery validation form. If I โopenโ all the panels above, validation will work. If I do it as if it should do, and only the last open panel, which has only the submit button, the check is performed as if it has no problems. He does not see the fields in the folded panels?
I could not find the answers to this and I hope that the community can help me.
How to run jquery validation when dropping bootstrap panels?
As requested, I created a JS script
As soon as you download the violin and try to submit the form (scroll down to view) , you will see that you receive annoying warnings, and it reports that the required fields are not in the form. It must happen!
Now, if you scroll to line 90 in HTML and delete the word in in the class name of the following div:
<div id="priorityInfo" class="panel-collapse collapse in" role="tabpanel">
and reload the violin, and then go through the panels and try sending again, you will notice that you are not receiving any annoying warnings or notifications. In addition, you will receive one notification that the form has been submitted.
This is a problem because you do not catch that you did not provide your name or email address.