What is the querySelectorAll method in JavaScript? | Document.querySelectorAll() Explained
HTML-код
- Опубликовано: 22 мар 2018
- In JavaScript, the 'querySelectorAll' method allows you to retrieve a list of Elements that match the CSS Selector that you specify. Essentially, it is a way of finding Elements in JavaScript. It's quitee flexible and lets you search for tags, classes, IDs, parent/child combinations, attributes and so on.
In this video I show you a clear and simple example of how it works on the 'document' object as well as another Parent Node - to only search within that parent.
For your reference, check this out:
developer.mozilla.org/en-US/d...
Follow me on Twitter @dcode!
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Finally a tutor we don't deserve but we need...
Excacly what I nedded. A simple, understanding video! Thx alot!
All good Nicklas - glad it helped you.
Wow, youre such a good teacher, thanks for your help, greeting from Ecuador!
Hey, thanks!
Helpful video! Liked for sure thank you!
Great video, thanks for explaining it.
Wow thank so much for this lecture. It helped! 🎉❤
You saved my life, thank you
increadibly simple. Thank you
Great explanation!
Good tutorial, thank you for your nice help.
You helped solve my problem, thanks alot.
thanks, i finally made a modal box with the use of for each method and adding event listener onClick for every buttons
Simply Beautiful:)
Thanks so much for this, it has helped me a lot 🔥
No problem 👍
Thank you , super video
Nice video! Thanks
No probs mate!
Cheers Dom
Love your vids man. But tbh...i only watch the foe the sound of your glorious keyboard.
I'll take it 😉
Thank you
Why does the Javascript break when you move the block into ?
Thank you it can be helpful but how can i apply a function on a specific Item for example : Item 2 of the second list ? thanks in advance mate.
1stinfamous its like an array. So use index notation - [1]
thanks
thank you 🍕🍕🍕🍕
at 1:22 can we use # in place of .(dot)
no because when we use dot we are actually refering to classes, with using the # we are refering to ids