There's More to Know About Query Selector - JavaScript DOM Tutorial

preview_player
Показать описание
In today's video we explore one of the most powerful JavaScript DOM methods... querySelector and querySelectorAll. These are typically the building blocks for any website built with vanilla JavaScript, as you can't do any DOM manipulation until you've retrieved the elements to work on!

For your reference, check this out:

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!

#dcode #javascript
Рекомендации по теме
Комментарии
Автор

I don't know what it is about DCODE videos that has me smiling all the time. Perhaps, it's because I know I'm about to learn something new.

septimusforster
Автор

Would love to see you write a function where you pass a string parameter that can be either a CSS selector or an XPath selector, the function then decides on the appropriate call to make based on whether it is an XPath selector or CSS selector and returns the matched dom element.

😃👍

pjc
Автор

Interesting
I am building a react page so no quereyselector
But what a cool way to boost the power of the method

Tde
join shbcf.ru