Question and answer is powered by AnsPress.io
var formData = form.serialize();
I have applied this code to pass form data in jQuery AJAX, here I want to pass some extra data by formData variable which has serialized form values. How can I add extra data to serialized form jQuery AJAX
I have got the successful result to applying this code.
var formData = form.serializeArray(); formData.push({ name: "Enter input name", value: "Enter input value" });
Hope it will be helpful foir you.