.serialize()The .serialize() method in jQuery is used to serialize the form data to a string for submission.
.serialize() syntax.serialize()
.serialize() VS .serializeArray()The output of serialize() is a string,
The output of serializeArray() is an array
.serialize() example$( "form" ).on( "submit", function( event ) {
event.preventDefault();
console.log( $( this ).serialize() );
});
