Questions tagged [dropdown]

Dropdowns are toggleable, contextual overlays for displaying lists of links and more.

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:
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