• Post Reply Bookmark Topic Watch Topic
  • New Topic

html drop down menu

 
Jason Crest
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yall,
i was wondering how it would be possible to when someone selects something on the drop down menu that their option can be displayed when the page is refreshed instead of going back to the first option.
Thanks!
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you would have to use a cookie to store what the user changed and when the page is reloaded, the cookie would have to be read.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65666
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using any server-side technology such as JSP, this is also fairly easy to do since the value is submitted as part of the request parameters and can be used to set which of the options is selected when the page is 'written' on the server.
hth,
bear
[ September 03, 2003: Message edited by: Bear Bibeault ]
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!