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

20663 questions
2387
votes
34 answers

Get selected text from a drop-down list (select box) using jQuery

How can I get the selected text (not the selected value) from a drop-down list in jQuery?
haddar
  • 24,077
  • 3
  • 18
  • 12
1221
votes
43 answers

How to make Twitter Bootstrap menu dropdown on hover rather than click

I'd like to have my Bootstrap menu automatically drop down on hover, rather than having to click the menu title. I'd also like to lose the little arrows next to the menu titles.
falter
  • 13,324
  • 5
  • 18
  • 22
1207
votes
33 answers

jQuery Get Selected Option From Dropdown

Usually I use $("#id").val() to return the value of the selected option, but this time it doesn't work. The selected tag has the id aioConceptName html code element. For example: How to do it in…
user2301515
  • 4,335
  • 5
  • 24
  • 35
296
votes
12 answers

How do I add options to a DropDownList using jQuery?

As the question says, how do I add a new option to a DropDownList using jQuery? Thanks
flesh
  • 23,017
  • 24
  • 77
  • 94
251
votes
18 answers

How to style the option of an html "select" element?

Here's my HTML: I want to make the name of the product (i.e. 'Product1', 'Product2' , etc) bold, and its…
MrClan
  • 5,084
  • 7
  • 26
  • 41
248
votes
10 answers

How to get multiple selected values of select box in php?

I have a html form which has a select list box from which you can select multiple values because its multiple property is set to multiple. Consider form method is 'GET'. The html code for the form is as follows: …
Param-Ganak
  • 5,319
  • 17
  • 47
  • 61
240
votes
10 answers

How to create a drop-down list?

How can I create a drop-down list? I've tried a ScrollView but it's not exactly what I need.
user1820528
  • 2,517
  • 3
  • 13
  • 10
202
votes
7 answers

DropDownList's SelectedIndexChanged event not firing

I have a DropDownList object in my web page. When I click on it and select a different value, nothing happens, even though I have a function wired up to the SelectedIndexChanged event. First, the actual object's HTML code:
TGP1994
  • 2,786
  • 4
  • 17
  • 31
168
votes
11 answers

Get selected option text with JavaScript

I have a dropdown list like this: How can I get the actual option text rather than the value using JavaScript? I can…
techtheatre
  • 4,308
  • 7
  • 26
  • 50
164
votes
14 answers

How to use jQuery to select a dropdown option?

I was wondering if it’s possible to get jQuery to select an
dotty
  • 35,833
  • 64
  • 143
  • 195
156
votes
23 answers

How can I close a dropdown on click outside?

I would like to close my login menu dropdown when the user click anywhere outside of that dropdown, and I'd like to do that with Angular2 and with the Angular2 "approach"... I have implemented a solution, but I really do not feel confident with it.…
Clement
  • 3,336
  • 3
  • 20
  • 33
1
2 3
99 100