Most voted "dropdown" questions
A user interface control GUI element, similar to a listing box, which allows the user to choose a value from a list.
Learn more…144 questions
Sort by count of
-
8
votes2
answers7119
viewsHow popular a Dropdownlist from another Dropdownlist
I need to know how to popular a Dropdownlist from another Dropdownlist. Example: I have a Dropdownlist called Project that takes information from my DB. When I select for example "Project 1" I need…
-
5
votes2
answers585
viewsHow to change Checkbox with Dropdownlist onChange in ASP.NET MVC Table?
I am developing a site with ASP.NET MVC and Razor, I have in one of my pages a table with some columns. I have in this table a State column whose has a Checkbox and another column containing a…
-
5
votes3
answers1217
viewsFloat half of the Dropdown Menu list to another position
How to do for in the sixth cell of Dropdown menu float left as in the image example below: I tried unsuccessfully something like: <style> #main-navigation-2 .dropdown-menu :nth-child(6),…
-
4
votes4
answers1488
viewsHow to close a dropdown if the user clicks another page location?
What is the best method to hide a div, that is fulfilling the role of dropdown, when the user clicks on another page location? At first, I value solutions cross-browser and without the use of…
-
4
votes1
answer4024
viewsSet the selected value in a Selectlist (Dropdownlist)
I have a list of vehicle models: private List<ModeloRastreador> modelo = new List<ModeloRastreador>(); add the result that came from the bank foreach (var m in modelo) {…
-
4
votes3
answers910
viewsClose the Bootstrap dropdown by clicking on another dropdown in the same menu?
The menu needs to remain open while I click anywhere on the document or screen, however, when I click on the dropdown of a second menu, it should close the previous one, and also need to open and…
-
4
votes1
answer1201
viewsHow to update a Dropdownlist without refreshing the page
I have a State Dropdown, and a City Dropdown, and a zip code field, which is making use of the mail online API, when I put a zip code, my system checks whether the city already exists in the…
-
3
votes3
answers1135
viewsBootstrap navbar dropdown focus control menu after click
Situation I have a navbar on my site, and in it I have several dropdown menus / megamenus. I need that when clicked on this dropdown, the user has the option to "scroll" the page up and down with…
-
3
votes2
answers526
viewsRecover string in database in a dynamic form_dropdown
I am trying to retrieve from the database a string in a field dropdown of a form on a page of update, my view goes below. $option = array(NULL => 'Selecione uma categoria'); foreach…
-
3
votes1
answer215
viewsHow to change the color of Kendo UI Dropdownlist according to the Status variable?
Can anyone tell me if there’s a way to change the color of Kendo’s Dropdownlist according to a Status variable? For example: If user is Active -> Assumes Green color If user is Inactive ->…
-
3
votes1
answer209
viewsShow more than one dropdown column value C#
How could it show more than the value of a column of a dropdown? I tried the following method: private void BindDropDownList() { DataTable dt = new DataTable(); string localidade = string.Empty;…
-
3
votes2
answers489
viewsCheckbox with External Checkbox
I have a Form with a Dropdownlist with Checkbox inside, and I have an external Checkbox that selects and unchecks all. My question is this:. When I uncheck one of the items in Dropdown the "Select…
-
3
votes2
answers734
viewsError passing values to @Html.Dropdownlist
Man Controller: public ActionResult AssociarDependencia(int codigoMilestone, int codigoAtividade) { try { using (CPMDatabaseEntities db = new CPMDatabaseEntities()) { List<Atividade> lista =…
-
3
votes1
answer479
viewsDropdown Menu (VUEJS/Javascript)
I’m trying to make a dropdown menu in Vue (I don’t want to use Bootstrap-Vue), so I created a isActiveDrop and defined how true, and every time I click the button to open it is set to false, so the…
-
3
votes2
answers87
viewsC# Windows Forms Generic Object
I have a Desktop application in C# and need to load a dropdown with an option "All" and the rest coming from a database table. To load the dropdownlist I did something like this:…
-
3
votes0
answers450
views -
3
votes1
answer1159
viewsThere is no Viewdata item of type 'Ienumerable' that has the key
I’m having trouble with the Employee Position that is on a separate Table, when I try to create an employee selecting the position, he error... but if I assign the position in Controller (Ex:…
-
3
votes0
answers47
viewsPRESTASHOP - Create dropdown Cascading
Sirs, I’m trying and hitting my head to create a Cascading filter for Prestashop, based on its categories, and the plugins I found are paid for. What would be the best way to do? If only Prestashop…
-
3
votes2
answers83
viewsFit li:Dropdown Menu
I got a CSS code from Dropdown Menu and I’m adapting it. So far it has worked but has a problem for now. When you mouse one of the main links, a dropdown menu appears below, with the red color and a…
-
2
votes0
answers117
viewsDropdownlist does not load in chain
I have a method in Asp.net who carries some dropdowns receiving as parameter the name of the dropdown. The method is working perfectly, because when I "debug" the application I see that the dropdown…
-
2
votes2
answers724
viewsPopular input with data from the same table via dropdown
I have a select named after a product. I want you to select the product name via dropdown it automatically fills a input code of the respective product. The information is in a single table, in case…
-
2
votes1
answer451
viewsCreate Fullcalendar events filter
Good morning, I would like to know how to create a filter in a dropdown that will return me certain events. An example is this: http://www.mikesmithdev.com/demo-fullcalendar-with-event-filtering/,…
-
2
votes1
answer225
viewsDropdown with Jquery/Ajax only sends data in the first record
I am applying a dynamically dropdown to each item of a returned list in PHP. When selecting any of the dropdown items, this value is sent to an Update.php file, via Jquery and Ajax. The Dropdown:…
-
2
votes2
answers35
viewsDropdown Hover work just above 1200px
If anyone can help me, I need Hover Javascript to work only at resolution above 1200px, I made the code but it’s not working. $(function() { if($(window).width() > 1200) { $('ul.nav…
-
2
votes1
answer756
views -
2
votes2
answers206
viewsDropdown pushes div down
I have an html code with Javascript with a dropdown to state that displays the city according to that state and then shows an address, to each selection it pushes the div that is down further down.…
-
2
votes1
answer304
viewsI need help with Jquery and/or JS for dependent Drop Down Menu
I am developing a program where there is a drop down menu that matches the Monthly, Weekly or Daily values that are the periodicity in which a system task must be executed. Ai has a second drop down…
-
2
votes1
answer901
viewsMultiselect in dropdown format in Bootstrap 4
I’m having trouble finding a multiselect in bootstrap 4 with "dropdown" format. The only element it allows is this way: I’d like to leave it in this format: As I recall, this did not happen in the…
-
2
votes2
answers1122
viewsBootstrap 3 - dropdown-toggle - Changing menu with it open is possible?
With Bootstrap the task of creating menus for ASP.NET websites is much simpler. However I noticed that when a dropdown menu is "open" when passing the mouse over another item it does not "open"…
-
2
votes1
answer276
viewsdropdown with pure javascript
I need a hand with a dropdown. every donation in the database I have a button that if clicked appears the items that were donated. I have the following line of code: user-donation.js const…
-
2
votes2
answers291
viewsVue Submenu menu from json
Hello, I’m beginner in Vue I’m wanting to make a menu with submenu coming from a json, follow the codes I made: <template> <div id="app"> <img alt="Vue logo"…
-
2
votes2
answers148
viewsas leaves the dropdown background white
I’m having difficulty leaving the background of the dropdown white (I wish I could remove this transparent from it) <!DOCTYPE html> <html lang="en"> <head> <title>Brown…
-
2
votes2
answers98
viewsDropdown - ASP.NET MVC
I’m a beginner in ASP.NET MVC and I need to create a Dropdown in a vehicle registration form where I can choose only one driver related to the vehicle that is previously registered in the database…
-
1
votes1
answer1182
viewsShow a div for each dropdown option
I have to create a dropdown that will show a div with a button for each dropdown option. For now I have the Divs (I have to do more) and the dropdown, but I don’t have the JS to show and hide. There…
-
1
votes1
answer54
viewsAdd items to a dropdown control connected to a database
I have a control dropdown connected to a BD and wanted to add an item to force the user to choose an option. How can I add another item (choose/select/----------) to the control in order to force…
-
1
votes0
answers50
viewsBug z-index IE - Bookmark reading [input] overwriting dropdown menu
Has anyone ever had this problem in IE? I have a menu and just below an input field. When I select the input field and the bookmark appears, it overwrites the dropdown from the menu.…
-
1
votes1
answer793
viewsDynamic menu with dropdown
I need to make this menu responsive by using dropdown. For each category added it generates an item in the menu: <div class="nav-collapse"> <ul class="nav"> <?php if($secoes) { while…
-
1
votes1
answer255
viewsCSS: Dropmenu with Login
I have a drop-down menu :Hover for a div that contains 2 input, login and password, and two buttons, so when I try to type something in the div(that appeared with the li’s Hover) it goes away...…
-
1
votes1
answer2890
viewsHow to make a dropdown menu open by clicking on it and closing by taking the mouse off it
I’ve been looking on the Internet about dropdown menu, I found some very interesting, but I did not find any that do what I said in the title of the question. All menus of the genre I found, to open…
-
1
votes0
answers200
viewsDropdown menu inside Wordpress post
What would be the best way to put a Drop Down Menu within a Wordpress post? Since the Links of this menu should open in the same post, as video for example... Click on the Menu then click on Option…
-
1
votes2
answers691
viewsPopular Dropdownlist with JSON
-- Controller -- [WebMethod] public ActionResult GetSellers() { List<Seller> sellers = db.Sellers.ToList(); return Json(sellers, JsonRequestBehavior.AllowGet); } -- View --…
-
1
votes1
answer196
viewsSelection of the Dropdown Menu
I would like when showing the menu dropdown, to li that contains it was still selected. I wonder if there is a way to do this only with CSS. Follow the example. Thanks!…
-
1
votes0
answers42
viewsJquery mobile filterable select ignore accent
Good, I am trying a select box taken from this example http://view.jquerymobile.com/master/demos/selectmenu-custom-filter/ works perfectly but when trying to filter the results by writing for…
-
1
votes1
answer336
views@Html.Dropdownlist returns null value
ASP.NET MVC4 I’m having a data return problem of a dropdownlist where the same list correctly values, but when choosing some value and post on the page the value arrives as null in the controller.…
-
1
votes1
answer258
viewsPre-select Last Record in a Dropdownlist c#
I’m assigning a list to the DataSource, and in this assignment I am concatenating the code with the company name, however, it loads the list with the first selected item. How do I have the last…
-
1
votes1
answer54
viewsDoubt about dropdown menu WORDPRESS
I’m developing a website on wordpress and in the menu I have an item that is dropdown as follows the example: HOME COURSES CURSO1 CURSO2 OVER But I wanted the user not to be redirected to another…
-
1
votes3
answers98
viewsShow BD value in Dropdown Box
I have in my database a value for user level and I would like to be able to modify it in the change. I need to load the level of the logged in user when opening the page: <div…
-
1
votes0
answers35
viewsFill Dropdowlist with data from another screen
I have a time zone screen where I have the fields name of the time zone, utc and daylight time only, it works fine. only that I have to create another "time zone period" screen with three fields the…
-
1
votes1
answer2090
viewsEdit data from a Dropdown List in Excel
I have a list of items in a dropdown in excel. These values must be selected by the user and from there, edit it as requested. However, I don’t know how to edit these dropdown values. Can anyone…
-
1
votes0
answers110
viewsASP.NET MVC - Changing input to dropdown and popular with SQL Server table values
I have a partial view (in this case, one of those Razor Pages) of type "Create" created from a table in SQL Server (which is stored as an entity of a model in my application). @model…