Returns all Document Object Model (DOM) element nodes of the descendants of the starting element node that match any of the supplied selector strings.
Syntax
pel = object.querySelectorAll(v)
Parameters
v Required. The selector string.
Return Value
A collection of DOM element nodes, or an empty collection.
Remarks
This method extends the querySelector method, by returning all DOM element nodes found using the selector string, rather than only the first element. This is why the result is in the form of a collection. The collection is ordered identically to the document search order, which is depth-first, pre-order traversal. All remarks in querySelector apply fully to this method.
This method extends the querySelector method, by returning all DOM element nodes found using the selector string, rather than only the first element. This is why the result is in the form of a collection.
The collection is ordered identically to the document search order, which is depth-first, pre-order traversal.
All remarks in querySelector apply fully to this method.
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, DD, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FORM, hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, NOBR, OL, P, PLAINTEXT, PRE, S, SAMP, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
W3C Selectors API , W3C Selectors , querySelector, IElementSelector