get element selector javascript code example Example: queryselector document.querySelector(".example");