having problem with :not() Syntax
hello, i want to invert the .hasClass in line 2.
I tried to use the :not() seperator but i can figure out the correct syntax.
any help please?
- $('ul#portfolio li').each(function() {
- if(!$(this).hasClass(filterVal)) {
- $(this).fadeTo("fast", 0.1).addClass('hidden');
- } else {
- $(this).fadeTo("fast", 1).removeClass('hidden');
- }
- });