Home » jQuery serialize()

jQuery serialize()

by Online Tutorials Library

jQuery serialize()

jQuery serialize() method is used to create a text string in standard URL-encoded notation. It is used in form controls like <input>, <textarea>, <select> etc. It serializes the form values so that its serialized values can be used in the URL query string while making an AJAX request.


jQuery serialize() example

Let’s take an example which serializes a form values.

Test it Now

Note: Only successful controls are serialized to the string. It is not possible to serialize the form submitted by a submit button unless the form was submitted using a button.

You may also like