js select all dom element from object code example Example: javascript select element with attribute document.querySelectorAll('[attrname="value"]');