I have this button, and I need to check with JavaScript if it is disabled, but I do not know how to do that. Here's the HTML:
<button type="button" title="Finalizar Compra" class="btn btn-proceed-checkout btn-checkout no-checkout" disabled="disabled">
<span>Finalizar Compra</span>
</button>
Do you see disabled="disabled"
? So how do I verify this?
What I already did was:
var b = document.getElementsByClassName("btn btn-proceed-checkout btn-checkout no-checkout");
if(b == ???) { //Aqui que não sei o que fazer ???
alert("Pedido minimo de: R$: 1250,00");
}