how to get label for attribute value in javascript code example Example: javascript get label value document.getElementById('*spaM4').textContent