How can I retrieve the attribute of a clicked element with jQuery? – Woocommerce
I'm using wordpress and woocommerce, and I want to add some scripts to run when a product variation is selected, with jQuery. I have a set of "buttons" in html like this: <div class="adsw-attribute-option"> <span class="meta-item-text sku-set" data-value="s">S</span> <span class="meta-item-text…