All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

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.

    http://jsfiddle.net/thepaddyman/XWjJm/

    Let me know if this is possible.

    Thanks.

    # April 16, 2013 at 6:52 am

    I decided to use another toggable tab content changer.

    Cheers

    Patrick

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