There are 6 blocks with checkbox. When clicked, they hide:
$( 'input[type=checkbox]' ).click(function(){ $('.catalog:has(input:checked)') .animate({ opacity: "0.5"},1000) .delay(1000) .fadeOut(1000); }); I need that after hiding these blocks ( display:none ), a DIV with text is added over it.
Tried to implement like this:
var countCatalog=$('.catalog').length; var catalogNone=$('.catalog:hidden').length; $(function () { if ($(countCatalog)==(catalogNone)){ $('.work').addClass('.new__block'); } }); but does not work (
Also tried the length of input:checked with a length of just input and then add a new Class. Please help, I have been suffering for a week.