943,189 Members | Top Members by Rank

Ad:
Jul 22nd, 2010
2

Dropdown Menu

Expand Post »
Hi,

I created one Dropdown menu like --Jump To--- .
a)google
b)Daniweb
When i click on the Jump To menu it displys two or more options like google or daniweb like above. When i click on the google it must call to hyper link and displays google website and daniweb as well. I hope you all understand. But i being failed to do this task. Could you please help out me regarding of this!!!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Anujay is offline Offline
2 posts
since Jul 2010
Jul 22nd, 2010
4
Re: Dropdown Menu
Yeah. I got your point. It was nice thinking actually. keep it up. Try this below code:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <html>
  2. <head>
  3. <script language="javascript" type="text/javascript" >
  4. <!-- hide
  5.  
  6. function jumpto(x){
  7.  
  8. if (document.form1.jumpmenu.value != "null") {
  9. document.location.href = x
  10. }
  11. }
  12.  
  13. // end hide -->
  14. </script>
  15. </head>
  16. <body>
  17. <form name="form1">
  18. <select name="jumpmenu" onChange="jumpto(document.form1.jumpmenu.options[document.form1.jumpmenu.options.selectedIndex].value)">
  19. <option>Jump to...</option>
  20. <option value=http://www.daniweb.com>daniweb</option>
  21. <option value=http://google.com>Google</option>
  22. </select>
  23. </form>
  24. </body>
  25. </html>
Reputation Points: 8
Solved Threads: 13
Light Poster
Jayavardhan is offline Offline
46 posts
since Jul 2010
Jul 22nd, 2010
2
Re: Dropdown Menu
Wow!!! It's really nice code. What a thinking you are!!! It was working greatly to me. Thank you very much...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Anujay is offline Offline
2 posts
since Jul 2010
Jul 22nd, 2010
0
Re: Dropdown Menu
Not much surpraised. It's simple code. Thanks for your reputation comments.
Reputation Points: 8
Solved Threads: 13
Light Poster
Jayavardhan is offline Offline
46 posts
since Jul 2010
Jul 22nd, 2010
0
Re: Dropdown Menu
That is really good!!
Reputation Points: 10
Solved Threads: 0
Light Poster
toydiaz is offline Offline
41 posts
since Jul 2010

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Help with jQuery .live
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: http://keyonary.com cool jquery effect





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC