<tfoot id='U8Njz'></tfoot>
      1. <legend id='U8Njz'><style id='U8Njz'><dir id='U8Njz'><q id='U8Njz'></q></dir></style></legend>
      2. <small id='U8Njz'></small><noframes id='U8Njz'>

      3. <i id='U8Njz'><tr id='U8Njz'><dt id='U8Njz'><q id='U8Njz'><span id='U8Njz'><b id='U8Njz'><form id='U8Njz'><ins id='U8Njz'></ins><ul id='U8Njz'></ul><sub id='U8Njz'></sub></form><legend id='U8Njz'></legend><bdo id='U8Njz'><pre id='U8Njz'><center id='U8Njz'></center></pre></bdo></b><th id='U8Njz'></th></span></q></dt></tr></i><div id='U8Njz'><tfoot id='U8Njz'></tfoot><dl id='U8Njz'><fieldset id='U8Njz'></fieldset></dl></div>
          <bdo id='U8Njz'></bdo><ul id='U8Njz'></ul>

      4. 复选框仅适用于 jQuery 数据表中的当前分页页面

        时间:2023-10-02

        • <i id='u8FbS'><tr id='u8FbS'><dt id='u8FbS'><q id='u8FbS'><span id='u8FbS'><b id='u8FbS'><form id='u8FbS'><ins id='u8FbS'></ins><ul id='u8FbS'></ul><sub id='u8FbS'></sub></form><legend id='u8FbS'></legend><bdo id='u8FbS'><pre id='u8FbS'><center id='u8FbS'></center></pre></bdo></b><th id='u8FbS'></th></span></q></dt></tr></i><div id='u8FbS'><tfoot id='u8FbS'></tfoot><dl id='u8FbS'><fieldset id='u8FbS'></fieldset></dl></div>

                <bdo id='u8FbS'></bdo><ul id='u8FbS'></ul>

                <small id='u8FbS'></small><noframes id='u8FbS'>

                <legend id='u8FbS'><style id='u8FbS'><dir id='u8FbS'><q id='u8FbS'></q></dir></style></legend>
              • <tfoot id='u8FbS'></tfoot>
                    <tbody id='u8FbS'></tbody>
                  本文介绍了复选框仅适用于 jQuery 数据表中的当前分页页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在使用 jquery 数据表列出我的内容,其中有复选框选择和选定的内容发布数据,但在提交的表单中仅发送当前页面数据.

                  I am using jquery data table for listing my content which have checkbox selection and selected content post the data but in submitted form only current page data sent.

                  我的数据表代码是:

                  $('#select').dataTable( {
                          "order": [[ 2, "desc" ]],
                          "lengthMenu": [[50, -1], [50, "All"]],
                          "columnDefs": [
                                  { orderable: false, targets: [0, 1, 3, 5] },
                                  { "width": "20px", "targets": [0, 1] },
                                  { "width": "80px", "targets": [5] }
                          ],
                  
                  });
                  

                  当我点击提交时,它只提交当前页面值的复选框数组.

                  When I click on submit, it only submit the array of checkboxes for the current page values.

                  我已经提到了这个链接 带有选中复选框的分页.复选框仅适用于当前分页页面.jQuery 数据表,但那里提供的带有链接和链接的解决方案不起作用.

                  I have referred this link already Pagination with selected check boxes. Checkboxes will only work on current pagination page. jQuery datatables but solution provided overthere with link and link is not working.

                  推荐答案

                  您可以使用以下代码获取所有选中的复选框值,这可能对您有所帮助

                  you can get all the selected check box values using following code this might be helpful for you

                  var myArray = [];
                  var id = "";
                  var oTable = $("#example").dataTable();
                  $(".class1:checked", oTable.fnGetNodes()).each(function() {
                      if (id != "") {
                          id = id + "," + $(this).val();
                      } else {
                          id = $(this).val();
                      }
                  });
                  

                  这篇关于复选框仅适用于 jQuery 数据表中的当前分页页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:使用 PHP &amp;MySQL 填充下拉列表 下一篇:使用 PHP 的数据表

                  相关文章

                  最新文章

                  <small id='t0ps7'></small><noframes id='t0ps7'>

                  1. <tfoot id='t0ps7'></tfoot>
                    <i id='t0ps7'><tr id='t0ps7'><dt id='t0ps7'><q id='t0ps7'><span id='t0ps7'><b id='t0ps7'><form id='t0ps7'><ins id='t0ps7'></ins><ul id='t0ps7'></ul><sub id='t0ps7'></sub></form><legend id='t0ps7'></legend><bdo id='t0ps7'><pre id='t0ps7'><center id='t0ps7'></center></pre></bdo></b><th id='t0ps7'></th></span></q></dt></tr></i><div id='t0ps7'><tfoot id='t0ps7'></tfoot><dl id='t0ps7'><fieldset id='t0ps7'></fieldset></dl></div>

                        <bdo id='t0ps7'></bdo><ul id='t0ps7'></ul>
                    1. <legend id='t0ps7'><style id='t0ps7'><dir id='t0ps7'><q id='t0ps7'></q></dir></style></legend>