I want to select a checkbox in all rows in a DataTables list on all pages. This is my code:
$('#selectAll').click(function (e) {
var p = oTableAPI.rows('tr', { page: 'all', "filter": "applied" }).nodes();
$.each(p, function (i, e) {
e.find('input[type = checkbox]').prop('checked', this.checked);
});
});
On this row i get Uncaught TypeError: undefined is not a function:
e.find('input[type = checkbox]').prop('checked', this.checked);
What am i doing wrong?