js query selector example
Example 1: queryselector javascript
var element = document.querySelector("#myid .myclass p");
Example 2: js queryselector
const para = document.querySelectorAll('p');
var element = document.querySelector("#myid .myclass p");
const para = document.querySelectorAll('p');