This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Drop-Down List? or Combo Box? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Drop-Down List? or Combo Box?" Watch "Drop-Down List? or Combo Box?" New topic
Author

Drop-Down List? or Combo Box?

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
When do we use drop-down list? and when do we use combo box? For example, I have a page for users to send a message. In that page, I have a text field for "Subject", a textarea for the body of the "Message", and the message can be sent to only one of the designated list of people. The message is sent after the user clicks on the "SEND" button.
The designated list of people for users to select, which is a field for "To", should be a drop-down list or a combo box?
Tom Blough
Ranch Hand

Joined: Jul 31, 2003
Posts: 263
Combo boxes allow editing - hence the name a combination of text and drop down inputs. If you want to limit the input to specific choices and not let the user edit or enter additional ones, then use a drop down list.


Tom Blough<br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>Cum catapultae proscriptae erunt tum soli proscripti catapultas habebunt.<hr></blockquote>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Since you can't create a combo box with HTML, what's the point of the question?
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Drop-Down List? or Combo Box?
 
Similar Threads
Text area and other contents are getting cleared on changing a drop down list
Struts 2 : Validation problem with dropdown box.
jcombobox help
JComboBox Model Help
??? Make JComboBox drop UP instead of DOWN ???