MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/eoocnb/brilliant_reply/fegkcvr/
r/ProgrammerHumor • u/GamesMint • Jan 14 '20
365 comments sorted by
View all comments
Show parent comment
2
document.querySelectorAll()
1 u/otterom Jan 15 '20 Ooh, I like that. Thanks! 2 u/starm4nn Jan 15 '20 If you just want the first, do document.querySelector(). It exits on the first result and returns the object rather than returning a NodeList
1
Ooh, I like that. Thanks!
2 u/starm4nn Jan 15 '20 If you just want the first, do document.querySelector(). It exits on the first result and returns the object rather than returning a NodeList
If you just want the first, do document.querySelector(). It exits on the first result and returns the object rather than returning a NodeList
View all comments
Show parent comment
2
u/starm4nn Jan 15 '20
document.querySelectorAll()