![]() |
VOOZH | about |
The serialize() method is an inbuilt method in jQuery that is used to create a text string in standard URL-encoded notation. This method can act on a jQuery object that has selected individual form controls, such as input, textarea etc.
Syntax:
$(selector).serialize()
Parameters: This method does not contain any parameter.
Return Value: This method returns a string of an object for the selected element.
The below example illustrates the serialize() method in jQuery:
Example:
Output: