JQuery hides elements with a specific class name that do not match a specific condition
I have a page with several elements that all have the same class name.
Some of them move, and when I submit the page, I would like to hide the elements that are at the top: 0;
I was looking for some suggestions and I tried something like this:
$('.myClass').not($('.myClass').css('top', '0')).fadeOut(300);
But apparently it doesn't work :-)
Does anyone else have an idea on how to do this?
thank
+3
source to share
3 answers