jQuery.ajax - submit all elements in form without manually entering them [duplicate]
Look at http://docs.jquery.com/Ajax/serialize.
That would make the following example:
$("#submit").click(function() { $.ajax({ data: $("form").serialize(), ...rest });});
Use .serialize()
method to send entire form data in jQuery Ajax.
data:$('#formID').serialize()
Example script can be found from here - How to send entire form data in jQuery Ajax