I have implemented the jquery validation in one of my projects.
I have a <div> which has all the billing details
& another <div> below it which has the shipping details.
There is a checkbox in between these <div>'s which says "Same as Billing Address". It is used to populate all the shipping fields from the billing fields.
Well, on this particular form there are some fields which are mandatory & which I have validated by jquery validation.
I have used the $("#form_id").validate().form(); statement to check validation on the click event of the checkbox.
The actual problem is that after page loads, I directly click on the checkbox & submit the page,
the page gets submitted & validation does not execute.
If I click the submit button with the checkbox unchecked then the validation runs properly.
Why is my form not being validated if I checked the checkbox?
Please guys, help me out.
Thanks in advance.