queryselector name attribute code example
Example 1: class query css js all
var matches = document.querySelectorAll("div.note, div.alert");
Example 2: queryselector name attribute
document.querySelectorAll('[property]'); // All with attribute named "property"
document.querySelectorAll('[property="value"]'); // All with "property" set to "value" exactly.
Example 3: queryselector
document.querySelector(".example");