Additional jQuery events submitting my Ajax.BeginForm

后端 未结 5 483
粉色の甜心
粉色の甜心 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:07

    Microsoft will probably break us, but:

    function SubmitMvcAjaxForm(formName) {
        eval('var event = new Object(); event.type="keypress"; ' + document.forms[formName].attributes["onsubmit"].value.replace('(this,', '(document.forms["' + formName + '"],'));
    }
    

提交回复
热议问题