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 icon color of it with a javascript without problem using the syntax below:
document.getElementById("btnEditar").style.color = "#FFFFFF";
But I wanted this to be changed only if the button was disabled. To let disable use the following syntax:
document.getElementById("btnEditar").disabled = true;
How do I do this?