Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82465

this.checked not working

$
0
0

Hallo. I am trying to select and deselect checkboxes in a tables tbody from a checkbox in the header. This is my code:

("#checkall").click(function () { $("input", myTable.fnGetNodes()).each(function () { $("input", myTable.fnGetNodes()).prop("checked", this.checked); });

However, this is not working and i suspect this.checked argument in the prop method because i cannot get the .checked from the intelisense. Am using jQuery 2.1.1 and datatables 1.10.

Thank you


Viewing all articles
Browse latest Browse all 82465

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>