0

I have a ASP.NET MVC Framework page that uses this solution to handle multiple submit buttons: https://stackoverflow.com/a/7111222/2126607

Now I'm trying to capture the submit button to check some values of the form to warn the user and show a modal confirmation.

When I capture them:

$('#butonId').click(function (e) {
    e.preventDefault();
    //... do some validations and wait for confirmation modal callback ...

    var form = $("#formId");
    form.attr('name', this.name);
    form.submit();
});

The form submit doesn't redirect to the correct (action:method) controller method. How could I achieve this?

rasputino
  • 642
  • 1
  • 8
  • 21

0 Answers0