Selector.filterVisible Method

Selects visible elements only.

Selector().filterVisible() → Selector

The elements that do not have display: none or visibility: hidden CSS properties and have non-zero width and height are considered visible.

Example

// Selects all visible div elements.
Selector('div').filterVisible();