how to select div js

Solutions on MaxInterview for how to select div js by the best coders in the world

showing results for - "how to select div js"
Kayla
18 Sep 2017
1// Select div with class "theDiv"
2document.queryselector('.theDiv');
3// Select div with ID "theDiv"
4document.queryselector('#theDiv');