javascript element read attribute
snippet in javascript

javascript element read attribute

user7266

document.getElementById('id1').getAttribute('attribute');