110
rated 0 times
[
116]
[
6]
/ answers: 1 / hits: 15522
/ 8 Years ago, mon, april 11, 2016, 12:00:00
Let's say I want to find all div
elements and span
inside p
.
Is it possible to get all what I want in a single querySelectorAll
invocation?
Conceptually it should be something like document.querySelectorAll("div | p span")
(where | means or).
More From » css