1

I'm currently coding a pull down menu, much like the one discussed here:https://stackoverflow.com/questions/17996303/html-display-a-text-when-dropdown-menu-has-been-chosen

But when "Option 1" is selected I'd like it to display "X", when "Option 2" is selected I'd like it to display "Y", etc. I feel like I'm sniffing around the right code but I just can't seem to get it right.

It's a beast of a list (about 350 menu options), so I'll save you all from my code unless you really need it.

Community
  • 1
  • 1

1 Answers1

0

There's a few ways to achieve what you want. The simplest would probably be using jQuery's html() method.

You could also use plain JavaScript.

Or CSS states, depending on your layout.

Community
  • 1
  • 1
Morgan
  • 867
  • 3
  • 11
  • 34