on form submit ajax serialize 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()
}