Is there any ready plugin to send all forms via ajax?

Need a universal plugin for submitting forms from the website so you can easily and quickly tie all that is necessary.
Began to write the jquery + phpmailer, perhaps invent the wheel.
The idea is that on the website creates a form about such inputname
<input type="text" placeholder="Your name" data-field-name="client Name" data-required="true">

Then the form data via ajax to the server and move the php loop and go.
data-field-name - name field to be sent in the email.
data-required - obligatory or not.

The basic requirements I need:
1) the Ability to easily tie a variety of forms to the site (without prescribing all name in php)
2) the Ability to easily tie recaptcha
3) uploading of multiple attachments (multiple) in one <input type="file">
4) easy to fasten some sort of plugin drag-and-drop (to drag files onto <input type="file">)
Who can met the ready plugin with this functionality?
June 14th 19 at 18:09
2 answers
June 14th 19 at 18:11
data: $('form').serialize();

Could be wrong of course, but something like that done?
June 14th 19 at 18:13
Actually have form fields there is data-field-name native attribute name. Its value gets to the server. Heresy some invented. Further, as described above, only need to collect these data by using the jQuery method serialize. All
In name you can write "client Name"? - dolores.Grah commented on June 14th 19 at 18:16
, name is the field name. By this name, in php you get the value of a field(which is what I had entered) - yoshiko_Corwin15 commented on June 14th 19 at 18:19
that's understandable. The problem is that we need to generate a letter which will be sent in the mail. Value is taken from the name but still need to understand what it's for value. That is, the letter should come "customer Name: Basil" and not just "Basil". To do this, use data-field-name which contains the text-name field (otherwise you'll have to php handler to pisati
$mail_body =
 "Customer name: $_POST['field_name']"
). The question is is there any ready plugin with such functionality. - dolores.Grah commented on June 14th 19 at 18:22

Find more questions by tags JavaScriptjQueryPHP