aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes html drop down menu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "html drop down menu" Watch "html drop down menu" New topic
Author

html drop down menu

Jason Crest
Greenhorn

Joined: Oct 17, 2002
Posts: 29
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Jan 10, 2002
Posts: 61654
    
  67

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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
jQuery in Action, 2nd edition
 
subject: html drop down menu