Modify posted input values on onbegin of ajax.beginform

前端 未结 4 1100
庸人自扰
庸人自扰 2020-12-17 16:49

Can posted input values on onbegin of ajax.beginform be modified? I have to modify values of some of the input fields after the form is submitted.

4条回答
  •  盖世英雄少女心
    2020-12-17 17:21

    $('#myform').submit() won't work on IE. If there is any validation, you can try to create a fake validation method to collecting form data.

    like Jquery.validaton below:

    jQuery.validator.addMethod("fakeMethod", function (value, element) {
                    YOUR DOM CODE HERE!!!
                    return true;
                }, "");
    

提交回复
热议问题