How to submit checkboxes from all pages with jQuery DataTables

后端 未结 4 1007
执念已碎
执念已碎 2020-12-06 01:11

I\'m trying to get first cell (td) for each row and getting it but only for current page. If I navigate to next page then the checkbox checked on the previous p

4条回答
  •  日久生厌
    2020-12-06 02:12

    You do not have to make hidden element on form just before submit simply destroy data table before submit and it will submit all checkbox on all pages like normal

        $('form').on('submit', function (e) {
            $('.datatable').DataTable().destroy();
        });
    

提交回复
热议问题