# Dynamic Button active style

**URL:** <https://community.plotly.com/t/dynamic-button-active-style/55726>\
**Category:** 📊 Plotly Python\
**Created:** [August 21, 2021, 4:50am UTC](https://community.plotly.com/t/dynamic-button-active-style/55726 "2021-08-21T04:50:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saeed](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@saeed](https://community.plotly.com/u/saeed)\
**Post date:** [August 21, 2021, 4:50am UTC](https://community.plotly.com/t/dynamic-button-active-style/55726/1 "2021-08-21T04:50:31Z")

</div>

Helllo Frinds,

I have Q I hope u could help me  
I create unknown number of dynamic buttons. The problem is that I want to add active to the clicked button  
I tried with match where i send new style, it worked but it changed all the buttons the I will click it and change there style to the new style I just sent so all clicked button will take the new style

I need to send the new style only for clicked one and update the other to original style ‘hard coded on the button’.

or another solution

CSS only hover works active didn’t work  
thanks guys
