JSFiddle - React, Tailwind, and code Playground

by MGames

HTML

<div class="add-cart-button-col col-right">
  <a class="checkout-button nsg-button nsg-grad--heeb-orange" href="https://mycheckoutlinkgoeshere.com" data-query="https://linkcheckoutgoeshere.com">
                      CHECKOUT
                    </a>
</div>

JavaScript

$(".checkout-button.nsg-button.nsg-grad--heeb-orange").click(function() {
  alert('hohoho');
});


$(".checkout-button.nsg-button.nsg-grad--heeb-orange").click()