Get elements using CSS selectors - Basic JavaScript Fast (48) | querySelector, querySelectorAll

preview_player
Показать описание
The video discusses the ways to obtain a DOM node using CSS selectors. The querySelector method obtains the first DOM node that satisfies a given CSS selector. The querySelectorAll method finds all the elements that satisfy a given CSS selector. The closest method finds the closest ancestor of an element with a given CSS selector. The matches method is a Boolean function that determines whether an element with a given CSS selector is present. The contains method is a Boolean function that determines whether a DOM node is contained in another DOM node.

1:50 - querySelector
7:32 - querySelectorAll
17:18 - closest method
21:01 - matches method
23:40 - contains method

Playlist of my JavaScript course

Playlist of my HTML5 and CSS3 tutorials

Playlist of my algorithm walkthrough

Playlist of my Java course

Playlist of my Java examples

#javascripttutorial #javascriptfullcourse #begincodingfast #javascript #queryselector #queryselectorall
Рекомендации по теме
welcome to shbcf.ru