I need to write some events where application contains series of anchor link with different data in data-attribute. i have wire an event (click may be) which can pull data-attribute value data-product-d and data-product-name for clicked anchor
My HTML looks like
<div class="product-availibility">
<p>Available from Etsy starting at <strong>$26</strong>
</p>
<a class="button lnk_tracking" href="https://www.etsy.com/listing/269790426/name-necklace-gold-name-necklace-gold" target="_blank" rel="nofollow" data-product-id="Non-Amazon" data-product-name="Name Necklace">See Now</a>
</div>
There are almost 10 divs with same class. On click on anchor, need to pull data-attribute