querySelector

The querySelector JS ParentNode returns the first element of the node that matches the selector(s).

Syntax

node.querySelector(selectors)

Parameters

selectors

Patterns that match elements in a tree structure.

Examples

1

2

3

4

5

6

7

8

HomeMenu