This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
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

Win a copy of The Software Craftsman this week in the Agile forum!
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: 15383
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: 62298

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] [Bear's FrontMan] [About Bear] [Books by Bear]
Have you tried LearnNowOnline?
subject: html drop down menu