I am debugging some jQuery code and have found that the section of code is not firing when clicked.
My HTML/PHP is:
$cartlink .= "<a class='add_to_cart button' data-id='{$product->id}' href='javascript:;' {$style}>{$label}</a>";
jQuery:
<script>
jQuery(window).on('click', 'a.add_to_cart.button', function() {
console.log("batman");
});
</script>
windowwithdocument