queryselector javascript with id code example Example: queryselector document.querySelector(".example");