Having these two buttons:
<button type="button" id="boton_uno" class="boton-estado btn-default">Boton 1</button>
<button type="button" id="boton_dos" class="boton-estado btn-default">Boton 2</button>
depending on whether the value is 0, 1 or 2, as the color varies: 0 - red 1 - green 2 - orange
In HTML if the color would be red: <button type="button" style="background:red">
, but how would it be depending on the value you have ...?
Example: the initial state is 0, I ask in a modal if we want to change the state to state = 1 (color of the green button) or state = 2 (color of the orange button)