Answers for "js select div"

0

js select div

// 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