Other filters (Become an expert)

So far, we've seen a plethora of filters, but the good thing is that jQuery has a lot more than that. Here, I'll show the remaining filters that I haven't added to the previous categories.

Getting ready

The filters are as follows:

Name

Description

:animated

Selects all of the elements that are in the progress of an animation at the time the selector is run.

:contains()

Retrieves the elements that contain the text given. The search is performed among the element itself and all of the descendants.

:empty

Collects the elements that have no children (including text nodes).

:focus

Select the element that has the focus at the time the selector is run.

:has()

Selects elements which contain at least ...

Get Instant JQuery Selectors now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.