Disable button while AJAX is working
-
How do I disable a button (or hide it) while AJAX is working?
I added a second “Checkout” button to my WooCommerce shopping cart page like this:
<a href="https://elementpaints.com/checkout/">Proceed to Secure Checkout</a>
But I want to disable that button while AJAX is being processed on the page. AJAX is used to update the cart totals when the quantity is changed.
Does anyone know how I can implement this? I assume it will be some sort of JavaScript code
I’m good with hacking code together, but not great at writing my own.
Here is the website I am trying to do this on: https://elementpaints.com/cart/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Disable button while AJAX is working’ is closed to new replies.