Answers for "add parameter to serialize javascript"

0

add parameter to serialize javascript

var data = $(this).serializeArray(); // convert form to array
data.push({name: "NonFormValue", value: NonFormValue});
$.ajax({
    type: 'POST',
    url: this.action,
    data: $.param(data),
});
Posted by: Guest on August-17-2020

Code answers related to "add parameter to serialize javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language