How to change alternative active button color

I have a 4 buttons i want to do while any user clicked on any button of theme that clicked button should be active . how can i do that please can your tell me anyone because am suck over 7 days on this . Any help or suggestion will be highly appreciated
Thanks in advance