Hello.
I want to implement a "switch" button like here forts.pro (buying / selling)
So that the button switches the display and at the same time changes its color to the active one.
Switch example
function change(combo){ if(combo.value == '1'){ document.getElementById('1').style.display = 'block'; }else{ document.getElementById('1').style.display = 'none'; } } The buttons will be such 4 pcs., respectively, and display