Questions tagged [drop-down-menu]

A GUI element, similar to a combobox and a list box, which allows the user to choose one value from a list. When a drop-down list is inactive, it displays a single value. When activated, it displays (drops down) a list of values, from which the user may select one.

Sometimes referred to as a pull-down menu, drop-down list, or drop-down box, a dropdown menu is a list of items that appear when clicking on a button or text selection. For example, many programs have a "File" drop down menu at the top left of their screen. Clicking on the "File" text generates a new menu with additional options.

Drop-down list on Wikipedia

Drop-down list image from Wikipedia

21877 questions
150
votes
23 answers

How to implement drop down list in flutter?

I have a list of locations that i want to implement as a dropdown list in Flutter. Im pretty new to the language. Here's what i have done. new DropdownButton( value: _selectedLocation, onChanged: (String newValue) { setState(() { …
Chaythanya Nair
  • 4,774
  • 6
  • 32
  • 40
148
votes
9 answers

How can I remove the gloss on a select element in Safari on Mac?

On Macs and iOS devices, in Safari, a
themhz
  • 8,335
  • 21
  • 84
  • 109
136
votes
20 answers

Firefox ignores option selected="selected"

If you change a dropdown and refresh the page, Firefox seems to ignore the selected attribute. It will in fact select the option you had previously selected (before the refresh). This ends up…
monkey-wrench
  • 1,556
  • 2
  • 14
  • 16
135
votes
10 answers

Asp.net - Add blank item at top of dropdownlist

Why is the dropdown not showing my blank item first? Here is what I have drpList.Items.Add(New ListItem("", "")) With drpList .DataSource = myController.GetList(userid) .DataTextField = "Name" .DataValueField = "ID" .DataBind() End…
Saif Khan
  • 18,402
  • 29
  • 102
  • 147
128
votes
8 answers

Check if value is in select list with JQuery

How can I, using JQuery, check if a value belongs to dropdown list or not?
user271507
  • 1,229
  • 2
  • 9
  • 9
127
votes
8 answers

Bootstrap: Position of dropdown menu relative to navbar item

I have the following dropdown
curious1
  • 14,155
  • 37
  • 130
  • 231
122
votes
33 answers

Bootstrap dropdown not working

I can't make bootstrap dropdown to work. Here is my html for nav:
120
votes
2 answers

How to check if an object is a certain type

I am passing various objects to a subroutine to run the same process but using a different object each time. For example, in one case I am using a ListView and in another case I am passing a DropDownList. I want to check if the object being passed…
Leah
  • 2,547
  • 5
  • 23
  • 28
119
votes
10 answers

How do I check how many options there are in a dropdown menu?

How do I check, using jQuery, how many options are there in a drop down menu? Thanks.
Asim Zaidi
  • 27,016
  • 49
  • 132
  • 221
115
votes
8 answers

Blank HTML SELECT without blank item in dropdown list

How implement subj? when i write:
then default selected item is "aaaa" when i write:
I have tried …
Gopesh
  • 3,882
  • 11
  • 37
  • 52
103
votes
14 answers

How to get selected value of a dropdown menu in ReactJS

I'm using react and I want to get the value of the selected option of a dropdown in react but I don't know how. Any suggestions? thanks! My dropdown is just a select like: