Latest solutions
Latest comments
- @talha-007@mikhailkollen
Hello! Not sure if I could help you with your approach, but I think you could try the following:
- In JS select the parent button container (you have already done it, as I see);
- Check if the container has the class "active-btn" and toggle it on click;
- Then, change toggle_btn.innerHTML depending on the class.
I've created a CodePen for you as a suggestion: https://codepen.io/mikhailkollen/pen/WNKRYPz?editors=1111
Something like this. Hope it helped!