queryselect a class and a element in javascript code example Example: queryselector by class javascript document.querySelector(".class-name");