Hey team, I've got a Bootstrap button on my HTML page:
.....
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
...
<div class="accept-btn">
<button type="button" class="btn btn-warning disabled" onclick="activatePmt()">Accept</button>
</div>
I also have a JavaScript function that is supposed to activate (enable) it:
function activatePaymentButton() {
const accBtn = document.getElementsByClassName('accept-btn');
//accBtn[0].disabled = false;
//accBtn[0].classList.add('accept-btn-vis');
//accBtn[0].setProperty("disabled", false);
//accBtn[0].style.setProperty("enable", true);
accBtn[0].removeClass('disabled');
}
However, when the function is called, nothing happens. Can you assist me in activating the button? What modifications should I make to the JS function? Thank you.