The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

CSS Toggable tab change dynamically with Javascript

  • # April 14, 2013 at 2:51 pm

    I am trying to change the background color for a button using JavaScript to change it dynamically once the user clicks on a specific button.

    If you look at the underneath link, once you click on the blue or red box the yellow bar and text change but I also want the button background color to change.

    Let me know if this is possible.


    # April 16, 2013 at 6:52 am

    I decided to use another toggable tab content changer.



Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed