Abhilash J A

Abhilash J A

  • NA
  • 2.4k
  • 582.5k

How to get all selected checkbox in jquery Datatable?

May 26 2016 2:27 AM
Could someone please help me to understand how can i get all the checkbox were checked throughout all the pagination page?<br /><br /><div>using below seem only show the current page checkbox, not all pages.</div><div>&nbsp;</div><div>&nbsp; I have tried this code but error occured. Kindly replay me. Error: <span style="color: red;">the fnGetNodes() not a function.</span></div><div><br /> $("#BtnAddClientContract").click(function (e) {<br /> var id = "";<br /> var table = document.getElementById('ListDiv');<br /> $('input[class="chkProductDetails"]', table.fnGetNodes()).each(function (e) {<br /><br /> if (this.checked) {<br /><br /> id = id + $(this).val() + ',';<br /><br /> }<br /> });<br /> });</div><div>&nbsp;</div>

Answers (5)