Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
});
 
PREVIOUS NEXT
Tagged: #form #serialze #submit #button
ADD COMMENT
Topic
Name
6+3 =