ASP.NET MVC Jquery Ajax post form serialize?

前端 未结 1 647
忘了有多久
忘了有多久 2021-02-14 00:48

Ajax function

$(function () {
    $(\'form\').submit(function () {
        if ($(this).valid()) {
            $.ajax({
                url: this.action,
                 


        
相关标签:
1条回答
  • 2021-02-14 01:44

    Try like this:

     data:$('this').serialize() + "&locations=" + getCheckedLocation() "&reports=" + getCheckedReports() 
    

    It will work.

    Hope it helps

    0 讨论(0)
提交回复
热议问题