Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opposite of not() function

I have a simple question, I've the following lines which equals to not active links:

$links.not($active).each(function() 
{
     //Do sth...
});

what is the opposite of the .not(...) function in JavaScript? because I need to know the active links, Any ideas !?

like image 355
NullPointer Avatar asked Sep 05 '25 03:09

NullPointer


1 Answers

This is jQuery, not JavaScript. The opposite of .not is .filter.

like image 198
Jon Avatar answered Sep 07 '25 23:09

Jon