Y
Hacker News
new
|
ask
|
show
|
jobs
by
awy
2891 days ago
querySelector() will get you one element, otherwise you can use something like
Array.from(querySelectorAll('*')).forEach()
It is a little more cumbersome.
1 comments
ngrilly
2891 days ago
Yes, this is what I do, and I agree it's a little more cumbersome. That's why I asked ;-)
link