1
I wonder what a condition it would be to cancel all my ckeckbox
.
function marcarDesmarcarTodos() {
for (i = 0; i <= 500; i++) {
document.getElementById('seleciona_ativarDesativar_'+i).checked = true;
}
}
I tried it this way, but it didn’t work.
function marcarDesmarcarTodos() {
for (i = 0; i <= 500; i++) {
if (document.getElementById('seleciona_ativarDesativar_'+i) != 'checked') {
document.getElementById('seleciona_ativarDesativar_'+i).checked = true;
} else {
document.getElementById('seleciona_ativarDesativar_'+i).checked = false;
}
}
}
Sergio loves querySelectorAll right? aheuhaeuhae I’m amazed
– Maicon Carraro
@Maiconcarraro I decided a while ago not to use IE8 anymore, and qsa is to help me remember the decision :)
– Sergio