how to get a attribute of a an element by id in javascript code example
Example: how to get element by attribute value in javascript
document.querySelectorAll('[data-foo="value"]');
document.querySelectorAll('[data-foo="value"]');