I want to send all input in a form with ajax .I have a form like this.
you can use serialize method of jquery to get form values. Try like this
function f( form ){ var formData = $(form).serialize(); att=form.attr("action") ; $.post(att, formData).done(function(data){ alert(data); }); return true; }