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