querySelectorAll method

0 out of 1 rated this helpful - Rate this topic

Retrieves all Document Object Model (DOM) element nodes from descendants of the starting element node that match any selector within the supplied selector strings.

Syntax

object.querySelectorAll(v, pel)

Parameters

v [in]

Type: String

The selector string.

Return value

Type: IHTMLDOMChildrenCollection

A collection of DOM element nodes. The collection may be empty.

Standards information

Remarks

This method differs from the querySelector method by returning a collection of DOM element nodes that match the selector string, rather than only the first element found.

See also

document
a
address
b
blockQuote
body
button
caption
cite
code
col
colGroup
dd
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
kbd
label
legend
li
ol
p
pre
s
samp
small
span
strong
sub
sup
table
tBody
td
textArea
tFoot
th
tHead
tr
u
ul
var
Reference
querySelector
IElementSelector
Other Resources
W3C Selectors API
W3C Selectors

 

 

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.