I have a button thats currently disabled. Once any changes have been made to the inputs in the form. I'd like to enable it....
$('input[class="input-text"]').on('change', (event) => {
event.preventDefault();
$('#checkout').removeAttr('disabled');
});
...
<button type="submit" className="btn" id="checkout" disabled>Checkout</button>
This doesn't seem to work. What am I doing wrong? (using .jsx syntax)