Asked by Glen Gibb
at 2024-07-17 18:04:39
Point:500 Replies:5 POST_ID:829013USER_ID:11916
Topic:
Asynchronous Javascript and XML (AJAX);;jQuery
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?
Pul-lease, help!
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?
Pul-lease, help!
Attachment:snippet.jssnippet.php