How to submit multiple forms with single submit?

This will submit all form elements via ajax when button is clicked $('button'). Click(function() { $('form'). Each(function() { var action = $(this).

Attr("action"); var data = $form.serialize(); $. Post(action, data); }); }) Note that this will not refresh the page, as they are all submitted via ajax.

This will submit all form elements via ajax when 'button' is clicked $('button'). Click(function() { $('form'). Each(function() { var action = $(this).

Attr("action"); var data = $form.serialize(); $. Post(action, data); }); }); Note that this will not refresh the page, as they are all submitted via ajax...

Thanks @jondavidjohn...this is what I am looking for .. – paul Jul 15 at 16:39.

Hmmmm. This might sound drastic, but why not encapsulate all the INPUTs into just one FORM element? If not that, I think you'll have to rely on AJAX to do this for you.

You could either do it the way that your doing it, or you can submit the forms via ajax requests. If there is no need for it to be asynchronous, I would probably do it the way you plan on doing it.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions