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 !?
Using
$links.not($active)creates a collection with the elements from$linksexcept the elements in$active.To get the active links, just use the
$activeobject: