HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

matches

Description

The matches of Element for JS returns true if matching selectors against element’s root yields element; otherwise false.

Syntax

element.matches(selectors)

Parameters

selectors

Patterns that match elements in a tree structure.

Examples

1 · false

2 · true