English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Please take a look at this simple HTML page that uses a JavaScript function to swap CSS classes.

There are zero advertisements on the page. It's very simple code.

http://www.cleansimpledesign.com/yahoo/css_style_swap.html

You can see that the JavaScript is triggered by the ONCLICK event.

I would like for this to be triggered using a SELECT menu.

I appreicate all help!

I would like this to work in all modern browsers.

I am set up to accept email from Yahoo! Answers users. It is probably a good idea to also email your code to me, since the "Answers" interface sometimes truncates code.

2007-05-01 06:06:49 · 3 answers · asked by mason00000001 2 in Computers & Internet Programming & Design

3 answers

Use your select object's onchange event: