How can i get all the control(checkbox) value irrespective of pagination page.

How can i get all the control(checkbox) value irrespective of pagination page.

ujjwal29ujjwal29 Posts: 4Questions: 0Answers: 0

I have showing 3 data tables under bootstrap tabbing (nav nav-tabs). I have one checkbox for selected all elements in respective data table. but unable to select all element only respective items are coming. DO you know how can i do that.
The below code is working fine only for selected page item size (e.g 10 rows)

$('#dksplanTable').find('tbody tr td input[type="checkbox"]').each(function () {
$(this).prop('checked', true);
var v = jQuery(this).val();
alert(v);
});

I am trying to looking for entire set of all items in data table. but below code is giving java script error.

var data = $('#dksplanTable').rows().data();

Please help me to get out of "all checkbox checked items in datatable while checking one header checkbox selection."

This discussion has been closed.