I found a tutorial that auto submits the form data but all I want to do is add a submit button to pass the data to ajax.
My goal is to have a form with multiple inp
Instead of:
$(".submit").click(function() {
Give your form a id like 'myform':
And use this for preventing default submission of form:
$("#myform").submit(function(e) { e.preventDefault(); //your code }