It's not a secret anymore!
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 Java Interview Guide this week in the Jobs Discussion 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

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

Joined: Jan 10, 2002
Posts: 63873

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

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Drop-Down List? or Combo Box?
It's not a secret anymore!