get element queryselector javascript code example Example: queryselector var el = document.querySelector(".myclass");