On submission of 2nd form, first form is being validated ,both forms are independent having separate submit buttons and both are validated using jquery validator plugin.
here is my code :
$("#addVehicleForm,#discountInfoForm,#ihqform,#saveReturnForm,#driversForm").validate({
// stuff here
)}
#saveReturnForm,#driversForm these are the id's which i am passing in same validator plugin method.
I am trying to validate by click like this :
$("#my-submit-button-name").click(function(){
$(this).submit();
})
Note : Both form has different submit button
They are bound to the same event, so each form will be called. Instead use this: