.serialize() form ajax code example
Example: serialize and send form data jquery ajax
$.ajax({
type : 'POST',
url : 'url',
data : $('#form').serialize()
}
$.ajax({
type : 'POST',
url : 'url',
data : $('#form').serialize()
}