Skip to content
Advertisement

How to make active button color in jquery?

JavaScript

This is the code I use in Elementor to make a custom tab section. All thing is working but my active tab does not show any active color. I want to make tab active color like the navigation menu active color.

Advertisement

Answer

you can create class “active-button” and add to your element when get actives.

JavaScript

}

JavaScript

and when other buttons clicked, first deactive all buttons and set active-btn to new one!

you can do this for all your tabs.set class to your all tab sections

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement