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