Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Toggle Links Upon Dropdown Menu Selection

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have figured out a JavaScript that goes to different links upon users' selection from a dropdown menu (see below). But, what I really want is to put the links behind an image instead embedding links in the <option ...> tags inside the dropdown <selection ....> tag.

That is to say, I would like the in the statment to change upon menu selection. What should I do to achieve it? Thank you.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64851
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, change it the way you want in the onchange handler. Where's your confusion?
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I would like to create a dropdown menu in the first <td> cell "without" the value attribute in each of those <option ....> tags. Then, I would like the <a href="....."></a> to toggle to different links behind the image that I put in the second <td> cell.


 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me answer my own question. The answer is that a reference must be established.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic