queryselector javascript function code example
Example 1: queryselector
var el = document.querySelector(".myclass");
Example 2: js queryselector names
// This selects the first element with that name
document.querySelector('[name="your-selector-name-here"]');
Example 3: js queryselector find without attribute
var test = document.querySelectorAll('input[value][type="checkbox"]:not([value=""])');
Example 4: query selector js
element = document.querySelector(sélecteurs);