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

Change class using select drop down menu

  • # March 9, 2010 at 8:43 am

    Hi there.

    I want to have a button displayed on the page and then using a select drop down menu with class names be able to have users select an option and dynamically change the look of that button by changing its class.

    I have seen examples with anchor tags on links but not with a select box.

    Any references or help would be greatly appreciated

    # March 9, 2010 at 9:50 am

    This works.

    < !DOCTYPE html>

    JS Change Class

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