Answers for "how to select div js"

0

how to select div js

// Select div with class "theDiv"
document.queryselector('.theDiv');
// Select div with ID "theDiv"
document.queryselector('#theDiv');
Posted by: Guest on January-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language