A value from an elements data attribute (
data-category) needs to be read when firing the tag. I tried to create a variable of
element.getAttribute('data-category') it could be easily read. But what is the scope the called function is running in to get a reference to the element?