Answers for "jquery ajax send custom data after serialize"

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
0

jquery ajax send custom data after serialize

var data = $('#myForm').serializeArray();
data.push({name: 'wordlist', value: wordlist});

$.post("page.php", data);
Posted by: Guest on January-04-2021

Code answers related to "jquery ajax send custom data after serialize"

Code answers related to "Javascript"

Browse Popular Code Answers by Language