get attribute
Get a value of the selected data attribute.
element.getAttribute('data-attribute');
copy
Get a value of the selected data attribute.
element.getAttribute('data-attribute');
copy