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.

Using querySelector() to obtain last td element

I have a variable which is a node from the dom. I've managed to get all the way down to …

javascript selectors-api
Selecting multiple elements with querySelectorAll

I have this piece of code: var requiredFields = el.querySelectorAll("input[required]:not(:disabled):not([readonly]):not([type=hidden])"); If …

javascript css-selectors selectors-api
How do I test CSS selectors in JavaScript?

How could I test CSS1-3 selectors to check that they get the correct elements, e.g. with JavaScript (maybe …

javascript css dom css-selectors selectors-api
Is querySelector supported by all browsers?

I would like to know is querySelector supported by all browsers? is not what's alternate for it to use? I …

javascript cross-browser selectors-api
IE9 equivalent of querySelectorAll

I haven't had any problems in FF or Chrome, but IE9 chucks an error on this method. I thought I …

javascript internet-explorer internet-explorer-9 selectors-api
querySelectorAll and :first child

I'm trying to get a list of only the first links per row in one wikipedia table with querySelectorAll but …

javascript selectors-api
XPath or querySelector?

XPath can do everything querySelector can do, and more, so when would you ever choose the latter? I haven't seen …

javascript xpath css-selectors greasemonkey selectors-api
How to set rounded buttons with background color and change color on pressed

In my android app there is a rounded rectangle button with green colored background. i did this using .xml file &…

android button selectors-api
Using querySelectorAll(). Is the result returned by the method ordered?

I'm trying to make a js code that works with multiple pages. I'm trying to use querySelectorAll() to obtain the …

javascript css css-selectors selectors-api
Using XPath with CasperJS QuerySelectorAll not working

For some reason when I try running the following code: var casper = require('casper').create(); var x = require('casper').selectXPath; …

xpath css-selectors web-scraping casperjs selectors-api