Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js select div

// Select div with class "theDiv"
document.queryselector('.theDiv');
// Select div with ID "theDiv"
document.queryselector('#theDiv');
 
PREVIOUS NEXT
Tagged: #js #select #div
ADD COMMENT
Topic
Name
2+1 =