Check Box "Check All" does not work for all pages using datatables

1

Scenario: I'm using DataTables to show a list of cities, and each of them has a checkbox. I also have a "Check All" which, of course, when checked, all cities should be checked as well. Problem: When I mark "Check All", only the cities of the first selected.
To checkboxes I use $(selector).each() .

'$('.chkCidade').each(function () {
        $(this).attr('checked', true)
 });'


Can you help me?

    
asked by anonymous 17.10.2017 / 15:06

1 answer

0

I found the answer here . This is the manipulation of table rows when using JQuery DataTables.

    
17.10.2017 / 16:24