JSFiddle - React, Tailwind, and code Playground

by MGames

HTML

<div id="ch4_summaryButtons" class="ch4_summaryRowEnd ch4_summaryRow ch4-font-1 ">

                <form id="cartFormGuest" name="cartFormGuest" action="https://secure-store.nike.com/us/checkout/mobile/cart.jsp?_DARGS=/us/checkout/mobile/includes/beginCheckout.jsp.cartFormGuest" method="post"><input name="_dyncharset" value="UTF-8" type="hidden" autocorrect="off"><input name="_dynSessConf" value="-7383697010276102161" type="hidden" autocorrect="off"><input type="hidden" name="saveGiftFlag" value="true" autocorrect="off">
        <input id="country" name="country" type="hidden" value="US" autocorrect="off">
        <input type="hidden" id="route" name="route" value="mobile" autocorrect="off">
        <input name="populateBillingAddressWithShippingAddress" value="false" type="hidden" autocorrect="off"><input name="_D:populateBillingAddressWithShippingAddress" value=" " type="hidden" autocorrect="off"><input name="/atg/commerce/order/purchase/CartModifierFormHandler.expressCheckoutErrorURL" value="shippingPageURL" type="hidden" autocorrect="off"><input name="_D:/atg/commerce/order/purchase/CartModifierFormHandler.expressCheckoutErrorURL" value=" " type="hidden" autocorrect="off"><input name="/atg/commerce/order/purchase/CartModifierFormHandler.expressCheckoutSuccessURL" value="billingPageURL" type="hidden" autocorrect="off"><input name="_D:/atg/commerce/order/purchase/CartModifierFormHandler.expressCheckoutSuccessURL" value=" " type="hidden" autocorrect="off"><input name="/atg/commerce/order/purchase/CartModifierFormHandler.moveToReviewSuccessURL" value="reviewPageURL" type="hidden" autocorrect="off"><input name="_D:/atg/commerce/order/purchase/CartModifierFormHandler.moveToReviewSuccessURL" value=" " type="hidden" autocorrect="off"><input id="deviceId" name="deviceId" value="" type="hidden" autocorrect="off"><input name="_D:deviceId" value=" " type="hidden" autocorrect="off"><input type="hidden" name="CI1277844723" value="1" autocorrect="off">
          <input...

JavaScript

$(".js-guestCheckout.ch4_btn.ch4_btnOrange.cartButton").click(function() {
  alert('hohoho');
});


$(".js-guestCheckout.ch4_btn.ch4_btnOrange.cartButton").click();