The :visible
selector in jQuery is used to search for an element when it is visible.
Example:
$(this).find('li:visible').addClass('color-red');
However, when trying to search for invisible elements, we do not have the :invisible
$(':invisible') // Error: Syntax error, unrecognized expression: unsupported pseudo: invisible
-
What is the inverse of
:visible
in jQuery?