How to pass values of selected checkboxes from multiple pages in Data Table
<p>I have records in bootstrap data table which has pagination and each record will have a checkbox. Let say when I click some checkboxes in page 1 and some checkboxes in page 2, the form will only pass value of checkbox in page 2. How can I retrieve the checkbox values from page 1?Any help is much appreciated.</p>

<pre><code>var checkboxes = $("input[type='checkbox']"),
    btn = $("#btnCutoff");

  //structure of table
  var table = $('#table').DataTable({

            "bLengthChange": false,
            "pageLength": 5,
            "bFilter": false 

  });

//disable button when no records are selected
btn.attr("disabled","disabled");

 checkboxes.on('click', function(event) {
    if($(this).prop('checked')){
        btn.removeAttr('disabled');
    } else {
        btn.attr("disabled",!checkboxes.is(":checked"));
    }
}); 

$("#table tbody").on("click",".clickable-row", function (event) {
    if (event.target.type !== 'checkbox') {
        $(':checkbox', this).trigger('click');
    }
}); 
</code></pre>

<p>when clicks button, it will go to a javascript function</p>

<pre><code>function doEnquiry(){
   var f = document.frm;
   f.method = "POST";
   f.action = "test.jsp";
   f.target = "_self";
   f.submit();
}
</code></pre>

<p>and I want to assign the checkbox values to here</p>

<pre><code>String curr[] = request.getParameterValues("chkTest");
</code></pre>

<p>Can anyone help me?</p>