get element by css selector javascript code example
Example: js select element by css selector
// First Element:
document.querySelector('.class')
// Multiple Elements:
document.querySelectorAll('.class')
// First Element:
document.querySelector('.class')
// Multiple Elements:
document.querySelectorAll('.class')