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

Pubblicato il: 15 ottobre 2023
sul canale di: Begin Coding Fast
106
1

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
   • [20 hours] JavaScript full course for begi...  

Playlist of my HTML5 and CSS3 tutorials
   • [12 hours] HTML and CSS full course for be...  

Playlist of my algorithm walkthrough
   • Algorithms and data structures | DSA cours...  

Playlist of my Java course
   • [14 hours] Java full course for beginners ...  

Playlist of my Java examples
   • Java projects for beginners | Java project...  

#javascripttutorial #javascriptfullcourse #begincodingfast #javascript #queryselector #queryselectorall


In questa pagina del sito puoi guardare il video online Get elements using CSS selectors - Basic JavaScript Fast (48) | querySelector, querySelectorAll della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Begin Coding Fast 15 ottobre 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 106 volte e gli è piaciuto 1 spettatori. Buona visione!