Additional jQuery events submitting my Ajax.BeginForm

后端 未结 5 487
粉色の甜心
粉色の甜心 2021-01-01 07:42

I have an ASP.Net MVC Ajax.BeginForm that submits and updates my page properly when I click the submit button.

The problem is I need additional events to do the sa

5条回答
  •  爱一瞬间的悲伤
    2021-01-01 08:09

    Decided to just use a regular form and then the jQuery.Form plugin and this worked in 2 seconds! Wish i would have just went this route orginally.

    var options = {
       target: '#updatedContent',   // target element(s) to be updated with server response 
       beforeSubmit: showRequest,  // pre-submit callback 
       success: showResponse  // post-submit callback 
            };
    
    $('#ViewCartPage form').ajaxForm(options);
    

    Man I love jQuery

提交回复
热议问题