Javascript - get data attribute

    
    var data = document.getElementById('hello').getAttribute('data-hello');
    

Comments