Validating before processing a form submit

I don’t do a lot of javascript so this may be very simple. I have a form that has a number of elements. I do validation based on some change events and some focusout events.

I can intercept the click of the submit button and before I submit the form I would like to run through a full validation calling the functions created to do this. However, several of the validations require the use of ajax and all that works fine.

My problem is jQuery doesn’t operate procedurally so when I call for functions it does that but moves to the submit part without waiting for the functions to complete their validation. So the question is how do I make it process in the order I want it processed, which is sequential, waiting for one step to complete before moving on to the next.

Thanks

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.