Set selected button

I have some buttons with badges. I want to set selected when it clicked.
How to achieve?

Hello @Naufil,
In such case, you can add the styling like next:
Code Snippet - here is custom CSS applied to the badges in the button.

Or, depending on a use-case, you can try to use toggle button:
https://snippet.webix.com/vy5tfzcb

That’s great @annazankevich. Thank you.

It doesn’t work as expected. when I click outside button then css gets reset @annazankevich.