I am trying to have a jQuery selector to select a element only if its children are not animated.
I tried:
var articalLink = $(".navArticals").filter($(this).children("ul:not(':animated')"));
It doesn't work
It turned out that only this works
var articalLink = $(".navArticals").filter(function() {
var filtered = $(this).children().not(":animated");
return filtered
});
Is there a way to select without the function inside .filter() ?