select element with attribute of a certain value code example Example: javascript select element with attribute document.querySelectorAll('[attrname="value"]');