get element by attribute css code example
Example: js get element by attribute
//find all elements with "someAttr" attribute
document.querySelectorAll('[someAttr]')
//find all elements with "someAttr" attribute
document.querySelectorAll('[someAttr]')