I am having a problem of disabling single button
When I click to order for $10 it disables all buttons, and I only want the one which I have clicked to be disabled
$(document).ready(function() {
$('.btn-checkout').click(function(e) {
$('.btn-checkout').html('proccesing order');
$('.btn-checkout').attr("disabled", true);
});
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<form method="POST">
<button type='button' class='btn-checkout'> order for $10</button>
<button type='button' class='btn-checkout'> order for $20</button>
<button type='button' class='btn-checkout'> order for $30</button>
</form>