querySelectorAll method - Document class - dart:html library (original) (raw)
querySelectorAll<T extends Element> method
ElementList<T> querySelectorAll<T extends Element>(
- String selectors )
Finds all descendant elements of this document that match the specified group of selectors.
Unless your webpage contains multiple documents, the top-levelquerySelectorAllmethod behaves the same as this method, so you should use it instead to save typing a few characters.
selectors
should be a string using CSS selector syntax.
var items = document.querySelectorAll('.itemClassName');
For details about CSS selector syntax, see theCSS selector specification.
Implementation
ElementList<T> querySelectorAll<T extends Element>(String selectors) =>
new _FrozenElementList<T>._wrap(_querySelectorAll(selectors));