File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

html drop down menu

Jason Crest

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.
Eric Pascarello

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

Joined: Jan 10, 2002
Posts: 63858

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.
[ September 03, 2003: Message edited by: Bear Bibeault ]

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: html drop down menu
It's not a secret anymore!