Experts, I've spent three frustrating days on a really simple procedure. I need to evaluate a form that may change according to the selected option. The class "required" points to the fields for validation.
My validator works great, but the form submits twice!
I've tried three solutions: event.preventDefault() and event.preventPropagation()
ideas, return false -- nothing seems to work. (See the attached js and php snippets.)
I've tried a number of plugins, but couldn't configure them to evaluate elements by their class.
Can you suggest anything else? Any workarounds? Do I need to try a different approach?