Select all the checkboxes in a table on the current page.
Select all the checkboxes in a table on the current page.
geekishere
Posts: 5Questions: 0Answers: 0
Hey all,
I am using Table tools for selecting the all the rows in the table. I also have a column with all the checkboxes in this. When I click on Select all button, it selects the all the rows but it doesn't select the checkboxes in that column. In the tabletools.js, I am writing
[code]
$(data[i].nTr).closest("tr").find('input[type="checkbox"]').prop('checked', 'checked');
[/code]
in _fnRowSelect function and
[code]
$(data[i].nTr).closest("tr").find('input[type="checkbox"]').removeAttr("checked")
[/code]
in _fnRowDeselect function. I am not sure what's wrong in this.
I will appreciate if somebody will help me.
Thanks.
I am using Table tools for selecting the all the rows in the table. I also have a column with all the checkboxes in this. When I click on Select all button, it selects the all the rows but it doesn't select the checkboxes in that column. In the tabletools.js, I am writing
[code]
$(data[i].nTr).closest("tr").find('input[type="checkbox"]').prop('checked', 'checked');
[/code]
in _fnRowSelect function and
[code]
$(data[i].nTr).closest("tr").find('input[type="checkbox"]').removeAttr("checked")
[/code]
in _fnRowDeselect function. I am not sure what's wrong in this.
I will appreciate if somebody will help me.
Thanks.
This discussion has been closed.