Dear Sir,
i am looking for save multiple forms details with one single button click event using asp.net and mysql ...if you have any solutions please forward it to me
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jaganathan BantheswaranPosted Feb 7, 2014, 4:04 AM
Make the button type as input NOT submit.
On the client event of the button, submit the forms using jquery.
$('.but').on('click', function(event) {
event.preventDefault();
$('.form1').submit();
$('.form2').submit();
$('.form3').submit();
});
In each forms submit event,
$('.formX').submit(function(event) {
event.preventDefault();
// Call to save the data.
});