githubEdit

querySelectorAll

The method querySelectorAll() returns all Elements within the element that matches the specified selector, or group of selectors. If no matches are found, null is returned.

Querys

Symbol
Query

#

id

.

class

<blank>

tag

Example

elem.querySelectorAll("#id") // Returns ALL element with the ID of id
elem.querySelectorAll(".id") // Returns ALL element with the className of id
elem.querySelectorAll("label") // Returns ALL element that are a LABEL

Last updated