Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

dom queryselector

// TO select all the h1 from Html
document.querySelectorAll("h1")

//To select h1 from a particular class or id
document.querySelector(".className/#id h1")
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #dom #queryselector
ADD COMMENT
Topic
Name
9+5 =