Is there a way to use an onClick even in a dropdown menu in HTML?

  • Thread starter Thread starter shamrock hero
  • Start date Start date
S

shamrock hero

Guest
I don't mind using javascript or CSS in my html code.

I've created code that changes the background color, font size, and font style and saves it as a cookie. And the code works perfect... with radio buttons.
All I did was used an onClick feature like this

<blah blah onClick="newColor2('blue')">

Obviously i'm already using some javascript. I figured it out before but I lost the code and I can't find out how to do it again.

Is there a way I could just keep the onclick on the drop down items and in the <select> convert the onClick to something else. I'm sure thats how I did it last time, but I just can't seem to figure it out again.


Like always, first one to give me a correct working answer first will get best answer.
 
Back
Top