I tried different things from the web but its still not wat i was searching for, maybe someone here can help me out...
I have 2 buttons on a page, each button can be pressed and they change their state just by switching a sprite image. I use a jscript for a pressed state so that they stay pressed when clicked.
Now what i want is that when i just click one of the buttons the otherone automatically switches to his normal unpressed state.
This is de code i use for pressing and changing the class to .active. My idea was to use an nonactive class to switch button2 to its normal state.