Selectors in DOM in JavaScript | Goose
Goose - The Coding Cat
In this video we will learn about the selectors in JavaScript document object model and try to manipulate
JavaScript's DOM Selectors are used to choose specific HTML components from a page. There are five different methods to use selectors to choose items in a DOM.
getElementsByTagName() getElementsByClassName() getElementById() querySelector() querySelectorAll()
All of those operations are document object attributes. Therefore, we must use the document object as a prefix before using one on those items.
document.getElementsByTagName() document.getElementsByClassName() document.getElementById() document.querySelector() document.querySelectorAll()
Instagram: https://www.instagram.com/code_instigator/ Facebook: https://www.facebook.com/goosethecodingcat
#selectors #fyp #coding #javascript #DOM #dommanipulation #domselectors ... https://www.youtube.com/watch?v=kpvp5kH1zEo
17911356 Bytes