Hello everyone, my goal is to check and uncheck the checkboxes until then, all right look at the print:
I press to select all and the script selects ALL I click to unmark it uncheck ALL until everything is right.
The PROBLEM is that if I go with the mouse and click on a checkbox of those and remove the selection and then click on select all they are NOT SELECTED BY THE TOOL SELECT ALL THAT I CREATED. Do you understand?
Type like this:
1- I clicked select all, now everyone is selected as in the image.
2-I choose the first checkbox and uncheck it.
3-Now I'll click on select all.
4-The select all does not mark my 1 checkbox. Do you understand agr?
My script is this:
//AQUI É PRA SELECIONAR TODOS OS CHECKBOX AMIGOS O BOTÃO AZUL LA ENCIMA SELECIONAR TODOS
$('.selecionadinho').bind('click',function() {
$('.checkboxs').each( function() {
$(this).attr('checked',true);
}
);
});
//AQUI ESSE CODIGO VAI RETIRAR TODOS OS CHECKBOX AZUL LA ENCIMA RETIRAR SELEÇÃO DE TODOS
$('.retirar').bind('click',function() {
$('.checkboxs').each( function() {
$(this).attr('checked',false);
}
);
});