my question is probably really simple, but i’ll ask anyways.
So I have a submit button in my form that has an onclick=”ajax()” and at the same time the action of the form is action=””
I notice at the execution of my form the page it is sill redirecting to whatever is in my action code.
What should I be doing when doing ajax form submissions?
If you’re using jQuery do it jQuery’s way (do not call the function in the
onclick):Or use malsup’s AJAX form plugin.