1
Good morning People, I have a form that is a datatable, and I have a button that marks or unchecks, all checkboxes of this datatable, by default these checkboxes are marked, i need that when reading the page or clicking on the button mark all the checkbox change its property by simulating a click on each checkbox. follows below my button. It has as?
Function marcardesmarcar() {
$('.marcar').each(function () {
if (this.checked)
$(this).attr("checked", false);
else
$(this).prop("checked", true);
});
}
this function that I use already does the same as yours, my doubt is if your answer will simulate the event click, in checksboxs
– Bruno Rayol
um, got it, updated the response.
– RDyego