java find element by query selector w3c document code example Example: queryselector var el = document.querySelector(".myclass");