[Solved] Simple "state manager" for button states

Does anyone have suggestions for a simple state manager approach which would allow me to set buttons to a specific state (focus, disabled etc.) on page load? It seems doable, I just cant wrap my head around how to go about it.

Thanks.

-MH