ExampleOutput the result of form values serialized as arrays:
Try it yourself » |
The serializeArray() method creates an array of objects (name and value) by serializing form values.
You can select one or more form elements (like input and/or text area), or the form element itself.
$(selector).serializeArray() |