2
I have the button:
<button id="btnVoltar" style="margin-bottom:0;vertical-align:middle" type="button" class="btn-flat bg-red btn-circle-lg waves-effect" onclick="voltaparaConsulta()">
<i class="material-icons">arrow_back</i>
</button>
I can change the color of his icon with a javascript without problem using the syntax below:
document.getElementById("btnEditar").style.color = "#FFFFFF";
However, I only wanted this to be changed if the button was disable. To let disable use the following syntax:
document.getElementById("btnEditar").disabled = true;
How do I do that?
blz, that’s right. Thanks
– Gleyson Silva