Answers for "form button not submit"

23

html submit button

<input type="submit" value="Submit">
Posted by: Guest on November-28-2019
2

make html button not submit

<button type="button">My Button</button>
Posted by: Guest on April-27-2021
0

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
});
Posted by: Guest on July-07-2020

Code answers related to "form button not submit"

Browse Popular Code Answers by Language