got data-attribute from element when clicked on