I have three Partial Views on my main form in which i have defined Submit buttons, i.e each partial view has its own submit button and i am using HTML.BeginForm() for taking the updated value from the partial view.Now on click of Submit button on the main form, i have called jquery function -
$("#btnUpdate").click(function () {
$("#Update1").click(); // update1 is the submit button in partial view.
//other saving code is already here
}
Above function works properly, now i want to fire click events of two more partial view but the problem is that it takes only one click event.i want to do something like that -
$("#btnUpdate").click(function () {
$("#Update1").click();
$("#Update2").click();
$("#Update3").click();
}
Is it possible to do so ? or is there any alternate method for taking the updated value from all these partial view on click of submit button.Any help would be appreciated.