I have a normal HTML form in which it is supposed to prevent default form submit and post the values by Ajax. It is not working with my setup Please help me where I went wr
set the submit button as type="button" instead of type="submit",
type="button"
type="submit"
and let's say the submit button has id submit-button. you can submit the form in javascript like this:
submit-button
$("#submit-button").click(function(){ //send ajax })