Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js select element by css selector

// First Element:
document.querySelector('.class')

// Multiple Elements:
document.querySelectorAll('.class')
 
PREVIOUS NEXT
Tagged: #js #select #element #css #selector
ADD COMMENT
Topic
Name
2+8 =