Top "Selectors-api" questions

The Selectors API provides methods that make it quick and easy to retrieve Element nodes from the DOM by matching against a set of selectors.

How to select all anchor tags with specific text content with Javascript?

I want to use the selector in document.querySelector() to select all a tags with the text "print". <a …

javascript html css-selectors selectors-api
What's the difference between queryAll and querySelectorAll

The definitions from the DOM Standard seems almost exactly the same, and I don't understand the difference. What is the …

javascript dom selectors-api
:nth-of-type() in jQuery / Sizzle?

It surprised me that Sizzle (the selector engine jQuery uses) comes with a built-in :nth-child() selector, but lacks an :nth-of-type() …

jquery jquery-selectors css-selectors selectors-api
Can I put logical operators in document.querySelectorAll? If so, how?

Let's say I want to find all div elements and span inside p. Is it possible to get all what …

javascript css dom selector selectors-api
How to add querySelectorAll() function to Element for IE <= 7?

With the code from this article I've successfully added querySelectorAll to document in IE7. But I need to use it …

javascript internet-explorer-7 selectors-api