Dropdowns are toggleable, contextual overlays for displaying lists of links and more.
Questions tagged [dropdown]
6384 questions
11
votes
2 answers
In bootstrap, How do I make an image a dropdown?
In bootstrap, How do I make an image a dropdown?
Hi, I have created a dropdown in bootstrap, I want to put an image such that it will be the item to click so as to see the dropdown.
Here is my code below.

CodeL
- 113
- 1
- 1
- 5
11
votes
2 answers
How do I create a keyValue pair (display field) by combining/having two fields in CakePHP 3?
I need help getting two values (for human friendly dropdown) in a key-value pair using find or get or anything else. I need help with the simplest method of doing this in CakePHP.
Here's my attempt:
in my controller
$users =…

Dawoodjee
- 439
- 5
- 16
10
votes
2 answers
How to fix Flutter dropdown button overflow issue?
I create a Flutter Form and I build a dropdown button with flutter. I am losing local son data into dropdown. Some of my items in dropdown button is long. I use SafeArea and ListView and I am getting overflow on right.
partial solution not…

Nick
- 4,163
- 13
- 38
- 63
10
votes
2 answers
Laravel dynamic dropdown country and state
I'm trying to make two dropdown menus. These are the countries and states selections from my database. My problem is don't know how to make conditions that states must be dependent on countries. When I select [countryname] it will give a different…

Kevin
- 315
- 2
- 5
- 19
10
votes
7 answers
Select2 drop down change event not working
I am using Select2 drop down and I need to do some functionalities based on the the drop down selection.
I have tried the following code, but it didn't worked for me.
$eventSelect.on("select2:select", function (e) { log("select2:select", e);…

Arun Raj R
- 2,197
- 3
- 13
- 23
10
votes
6 answers
Dropdown onchange calling PHP Function
What I'm attempting to do with the below code is call a PHP function from an drop-down menu.
Is there a clean way of doing this?
code:

Mark James
- 481
- 2
- 6
- 18
10
votes
8 answers
How do I get the Materialize select dropdown to work with React?
Adding the following template code provided by Materialize doesn't immediately work in a React component:

user3006381
- 2,735
- 3
- 23
- 32
10
votes
1 answer
10
votes
7 answers
Using PHP to populate a dropdown?
I want to populate the above tag with values from database.
I have written PHP code up to this.
while($row=mysql_fetch_array($result))
{
}
$row is fetching correct values. How to add it to the

Flins
- 221
- 2
- 7
- 21
9
votes
3 answers
Flutter: How to set different colors for DropdownItems and for DropdownButton selected item?
I have included DropdownButton in my project but I stucked with these problem.
I have tried to use Theme on it but it also changes the both of colors. I can still change the background color of dropdown but I wanted it to be white with black…

1encore
- 394
- 4
- 15
9
votes
3 answers
Error when selecting a dropdown item in Flutter
I have a problem with a Flutter dropdown. When I select one of the items it throws an error:
Another exception was thrown: 'package:flutter/src/material/dropdown.dart': Failed assertion: line 481 pos 15: 'value == null ||…

Alberto Méndez
- 1,044
- 14
- 31
9
votes
2 answers
Flutter: Selected value in dropdown list
The initial value in the dialog box doesn't change when I select an item. Here is the code for the dropdown list:
void _buildStatusDialog(String documentID) {
String _selectedText = "SDD";
showDialog(
context: context,
builder:…

Ny Regency
- 1,620
- 8
- 25
- 43
8
votes
3 answers
bootstrap.min.js:6 Uncaught TypeError: n is not a constructor returning when I click on the dropdown button
I have multiple dropdown menus in my page. Located inside the nav works fine, but the inside of the page does not work
Located inside the nav
inside of the page
what is the problem?
Thank you.

starlings
- 411
- 6
- 12
8
votes
4 answers
Bootstrap Dropdown is not working in React
I include a dropdown button to React from bootstrap Dropdowns, But it is not working and shows as a normal button. Can you give me a solution for this?
8
votes
1 answer
React Select - Multi Select custom way to display multiple options
I am looking to customize the multiselect and the way we create the display of showing selected options.
Right now, with many options selected the select component takes up a prohibitive amount of space for certain UIs. See example:
I'd like to…

user10782250
- 227
- 1
- 4
- 13