Skip to content
Surf Wiki
Save to docs
general/graphical-control-elements

From Surf Wiki (app.surf) — the open knowledge base

Combo box

User interface element

Combo box

User interface element

A generic combo box

A combo box is a commonly used graphical user interface widget (or control). Traditionally, it is a combination of a drop-down list or list box and a single-line editable textbox, allowing the user to either type a value directly or select a value from the list. The term "combo box" is sometimes used to mean "drop-down list". In both Java and .NET, "combo box" is not a synonym for "drop-down list". Definition of "drop down list" is sometimes clarified with terms such as "non-editable combo box" (or something similar) to distinguish it from "combo box".

To make a combo box like shown in the image above in HTML, one can write the following code:

<input list="comboboxlist" value="Something else">

<datalist id="comboboxlist">
  <option value="List item 1">
  <option value="List item 2">
  <option value="List item 3">
  <option value="List item 4">
</datalist>

References

References

  1. (February 15, 2007). "Combo boxes in forms on Web pages". IT and communication.
  2. (2012-02-28). "How to Use Combo Boxes (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)". Docs.oracle.com.
  3. (2014-06-20). "ComboBox Class (System.Windows.Controls)". Msdn.microsoft.com.
Info: Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about Combo box — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report