Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Selectors API

This section describes methods that you can use to select objects by using Cascading Style Sheets (CSS) selector syntax.

In this section

TopicDescription

querySelector

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

querySelectorAll

Retrieves all DOM element nodes from descendants of the starting element node that match any selector within the supplied selector strings.

 

 

 

Show:
© 2015 Microsoft