Suprotim Agarwal, MCSD, MCAD, MCDBA, MCSE, is the founder of,, and. He has also authored a couple of books and a new one recently. Suprotim has received the prestigious for nine times in a row now. In a professional capacity, he is the CEO of A2Z Knowledge Visuals Pvt Ltd, a digital group that represents premium web sites and digital publications comprising of Professional web, windows, mobile and cloud developers, technical managers, and architects. Get in touch with him on Twitter @, or befriend him on.
I'm trying to send a form's data using jQuery. Serializing and submitting a form with jQuery POST and php. Post php form jquery ajax-1. I'm trying to pass a wordpress plugin some form data via ajax and it works. Accept AJAX call with serialized form data. Using jquery serialize in ajax.
In this example, we’ll talk about serialize(), a popular method of jQuery. The serialize() method serializes a set of input elements into a string of data.
It creates a URL encoded text string by serializing form values. You can select one or more form elements (like input and/or text area), or the form element itself. The serialized values can be used in the URL query string when making an AJAX request.
JQuery website describes this method as it encodes a set of form elements as a string for submission. This is maybe the easiest way to understand what the method does. It sets things up (meaning gets values of input fields, but not only) for you to get the right results when considering form submission.