serialize() method creates a URL-encoded text string by serializing form values.
You can select one or more form elements (such as inputs and/or text boxes), or the form element itself.
Serialized values can be used in URL query strings when generating AJAX requests.
.serialize() method creates a text string represented in standard URL encoding. It operates on a jQuery object that represents a collection of form elements.
Note: Only "successful controls" will be serialized into strings. If you do not use a button to submit the form, the submit button's value is not serialized. If you want a form element's value to be included in a sequence string, the element must use a name attribute.