form button not submit code example
Example 1: html submit button
<input type="submit" value="Submit">
Example 2: make html button not submit
<button type="button">My Button</button>
Example 3: form serialze submit button
$("#mySubmit").click(function() {
var formData = $(this).closest('form').serializeArray();
formData.push({ name: this.name, value: this.value });
//now use formData, it includes the submit button
});