how to find atribute value in dom code example Example: dom element get attribute document.getElementById('id1').getAttribute('attribute');