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?