querySelector document code example
Example 1: queryselector
var el = document.querySelector(".myclass");
Example 2: queryselector javascript
var element = document.querySelector("#myid .myclass p");
Example 3: queryselector
document.querySelector(".example");