5
Answers

How to get all selected checkbox in jquery Datatable?

Mani Kandan

Mani Kandan

8y
2.6k
1
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)