query selector id code example
Example 1: js queryselector find without attribute
var test = document.querySelectorAll('input[value][type="checkbox"]:not([value=""])');
Example 2: query selector js
element = document.querySelector(sélecteurs);
Example 3: queryselector javascript varias clases
element = document.querySelector(selectores);
Example 4: document.queryselector
<div id="foo\bar"></div>
<div id="foo:bar"></div>
<script>
console.log('#foo\bar');
document.querySelector('#foo\bar');
console.log('#foo\\bar');
console.log('#foo\\\\bar');
document.querySelector('#foo\\\\bar');
document.querySelector('#foo:bar');
document.querySelector('#foo\\:bar');
</script>
Example 5: queryselector
document.querySelector(".example");