attribute selector in vanilla javascript code example
Example 1: javascript select element with attribute
document.querySelectorAll('[attrname="value"]');
Example 2: js queryselector find without attribute
var test = document.querySelectorAll('input[value][type="checkbox"]:not([value=""])');