FAQ Database Discussion Community


Drop down list with possibility to enter new value instead of list

javascript,php,mysql,database,drop-down-menu
I'm creating a small website php/mysql. Let's say I have in my DB a table with different laptop specifications (brand, cpu, ...). When adding a new laptop in a html form, in the brand field for instance, I want to have the option to see all the distinct brands present...

Bootstrap wrap menu elements at 960px

twitter-bootstrap,drop-down-menu
I have small issue. When width page is 768-991px, my menu wrap into second line. I want to browser show button for collapse menu. How can i do it? There is a link for project: http://interpages.pl/ftp/projects/fremel/...

Making “Drop Down Menu” and “Head Menu” relative does not make de “Drop Down Menu” push down the “Head Menu” on hover

jquery,html,css,drop-down-menu
So again I am strugling with some problems. This time it is so that when I hover over the drop down menu from portfoilio (when the site is in mobile view mode) it will just go over the other elements, I tried making everything relative, removed the float and tried...

Bind a Dropdown in Gridview When Selected Index Changes on Dropdown in the same Gridview

c#,asp.net,gridview,drop-down-menu
I have a gridview with template fields consisting of dropdowns and textboxes. 1 dropdown will be a so-called "master" dropdown that when the selected index changes, other dropdowns in the same row will be databinded using the selected value of the master dropdown. I have this code for my ASPX...

Using the result of a select clause for a where clause to MySQL

php,mysql,select,drop-down-menu
I have a MySQL database containing 12 columns. I created a dropdown from it using distinct values of the column named 'activity' and the column named 'logdate' which is a datetime. Like this.. <form action="define_activity" id="activityform" method="post"> <!-- Form to select an activity --> <select name="activities" id="select1"> <!-- List of...

How to set the selected option of Value

javascript,jquery,html,drop-down-menu
Can anyone help point out to me what's stopping this code that works perfectly fine with jsFiddle from working in my webpage? I have been trying to fix this for the past couple of hours, and no matter what I do, I can't seem to get it to trigger. I...

Menu CSS issue in IE8

css,drop-down-menu,internet-explorer-8
I have created a Menu list. It is working perfectly on Chrome and Firefox but misaligned in IE8 Chrome Snapshot :- http://postimg.org/image/g6uf9zikr/ IE8 Snapshot :- http://postimg.org/image/u6o3pzasz/ Here's my CSS ------ div.menu { background-color:#383838; height:65px; margin-bottom:20px; } div.menu ul { vertical-align:middle; list-style:none; margin:0; padding:0; } div.menu ul li { float:left; display:block;...

Bootstrap dropdown menu links not clickable

jquery,css,twitter-bootstrap,drop-down-menu
I have a page: http://www.poh.me/nordisk/ where the dropdown menu links on this page works, but the subslinks (e.g. http://www.poh.me/nordisk/contact/) the anchors becomes unclickable. I've tried every thing from removing data-toggle from the links to z-index css and other tips I read from others having a similar problem. Any help is...

Replace li navigation menu text with image & keep hover + drop down menu effects?

html,css,image,drop-down-menu,css-menu
I'm currently working on a navigation menu that uses <li> to construct the bar. Currently, my menu is working perfectly but I'm wanting to actually REPLACE the text on my menu (i.e. Projects, Compliance, Summary, etc) with actual image buttons that I designed in Photoshop to give it a more...

How to validate age and alert if the current date is the user's birthday?

javascript,validation,drop-down-menu
Okay, I'm very new to Javascript (I started about 2 months ago in my computer's class) and I'm doing an assignment that requires a form that includes date of birth (with day/month/year each in a dropdown) and I need to be able to: a) Confirm that the user is over...

Drop down menu hyperlinks click event issue

javascript,jquery,css,html5,drop-down-menu
Please take a look on my code here, I have a multi level menu. Problem is that the hyperlinks are only working on child list items e.g. Brands has 5 child items (Samsung, Nokia, Apple, Sony, LG) and hyperlinks are working fine on them, but on parent items (Home, Phones,...

How to remove all the borders of a selectbox?

jquery,html,css,drop-down-menu
How can I remove the all the borders of the selectbox using css or Jquery ? My code, <select id="doctor_ch"> <option value="1" selected>One</option> <option value="2">Two</option> </select> CSS #doctor_ch{ background-color: #88AFF2; color:#fff; margin-top: 15px; } When I use this code it only changes the arrow style. I want to remove the...

Can't set headings for every column in dropdown menu

html,css,drop-down-menu
I have a dropdown menu in a template that I got online. Here is the code for the dropdown menu: <!-- mega-menu start --> <li class="dropdown mega-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Clients</a> <ul class="dropdown-menu"> <li> <div class="row"> <div class="col-lg-8 col-md-9"> <h4>Customers</h4> <div class="row"> <div class="col-sm-4"> <div class="divider"></div> <ul class="menu"> <li><a href="page-about.html"><i...

Google chart redraw onclick

javascript,jquery,drop-down-menu,charts,google-visualization
I am trying to make a chart from which the data is selectable through various dropdown menu's and a date selector. I can't seem to find a way to pass new data in the chart on a click event. I got it working so far that onClick, it draws an...

Cannot populate a DropDownList in EditItemTemplate using OnRowCommand

c#,asp.net,drop-down-menu,edititemtemplate
This is my code behind code. I want to populate the DropDownList once the user clicked edit but the DropDownList I'm getting is null. Why? protected void SupportSchedule_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "EditRow") { int rowIndex = ((GridViewRow)((ImageButton) e.CommandSource).NamingContainer).RowIndex; GridViewRow row = (GridViewRow)(((ImageButton) e.CommandSource).NamingContainer); SupportScheduleTable.EditIndex = rowIndex;...

Bootstrap dropdown selection makes screen jump

javascript,html,css,twitter-bootstrap,drop-down-menu
So I'm using bootstrap for my website and I have many div's on each page with a dropdown on each that change the information inside the div from a chart to a table and vise-versa. This works fine except when the user selects an option from the drop down the...

Hover not working on css menu active li class? Works on others?

html,css,drop-down-menu,menu,hover
I can't seem to get the hover to work on my very first css menu navigation button. It is an active li class, does anyone have any ideas? The other menu option' hover effect is working just fine. CSS code: @import url(http://fonts.googleapis.com/css?family=Open+Sans:600); /* Menu CSS */#cssmenu, #cssmenu > ul {...

Can't add TemplateField to Datagrid

html,asp.net,visual-studio,drop-down-menu,datagrid
I am trying to add a DropDownList into the DataGrid so the location column can be easily changed. I am getting an error with TemplateField, itemtemplate, label and DropDownList. I get the build error: is not allowed within a 'System.Web.UI.WebControls.DataGridColumnCollection'. <asp:DataGrid runat="server" CssClass="tblResults" OnItemDataBound="dgList_ItemCreated" AllowSorting="true" OnSortCommand="dgTrailer_Sort" ID="dgTrailers" DataKeyField="ID" AutoGenerateColumns="false"> <Columns>...

Chained Dropdown in flask, get data from sqlite database

javascript,python,sqlite,drop-down-menu,flask
I am trying to get a html select tag with different counties (getting from database), when the user have selected a county, I want another select tag to enable and show the cities in that county (I have the data in a sqlite database, where the county id is in...

how to hide a div from a selected value in dropdownlist asp.net mvc

asp.net,model-view-controller,drop-down-menu
i need help. So i have a dropdownlist(below), @Html.DropDownListFor(model => model.Reference, ViewBag.ISharedUI as SelectList, "-- REFERENCE TYPE --") @Html.ValidationMessageFor(x => x.reftab) and i have 2 div which are(below) <div class="widgetbox" id="divone"> Some contents </div> and <div class="widgetbox" id="divtwo" style="visibility:hidden"> Some contents </div> So what i need to do is, to...

Show and hide column in a table using drop down

javascript,jquery,html,table,drop-down-menu
I have a table, which looks exactly like this one: https://www.datatables.net/examples/api/show_hide.html I now want to replace the headers (the th things) with a drop down. I want to hide and show columns thanks to those drop downs (they can click and show what they want). I was also wandering if...

DropDownList is not working properly when bound to database and add item manually

asp.net,c#-4.0,drop-down-menu,oracle11g
I have created one webpage in ASP.net C# front end and Oracle 11g back end. Webpage consist of 2 DropDownList, button and GridView. Among these 2 DropdownLists, DropDownList1 contain static value "QC Released" added through ListItem Collection Editor and other DropDownList2 is bounded to database. However, in DropDwonList2 I have...

CSS dropdown menu cross-browser

html,css,drop-down-menu,cross-browser
My CSS dropdown menu behaves strange in different browsers. It works fine in Chrome (Windows) but there are issues in Firefox and on Android. Firefox: Dropdown menu opens up to the right of the menu item instead of below. Also, the dropdown menu is not in line with the menu...

CSS Dropdown Menu - Too Much Space Between
  • and another (Margin:0; Padding:0)
  • html,css,drop-down-menu
    I got 2 dropdowns in my work-in-progress site, one works just fine, the other works aswell but the space between a link and another is completely destroying the graphics of it. Unluckly for me I can't post images, so here is the code. HTML <ul class="header"> <% IF Session("Authenticated") =...

    Firefox dropdown menu click

    html,firefox,select,drop-down-menu
    I have a dropdown menu for languages in my website and it works fine in Google Chrome, Safari and Internet Explorer, but it is bugged in Firefox. This is the code: <a href=""> <select id="languageSelector" style="background-color: transparent" onchange="location = this.options[this.selectedIndex].value;"> <option value=".">ESPAÑOL</option> <option value="./en/index.html">ENGLISH</option> <option value="./de/index.html">DEUTSCH</option> <option...

    Get a specific value from a specific array when having two dropdown lists

    c#,arrays,drop-down-menu
    I have 5 arrays which represents 1 city each. Each position in the array represents the distance to another city (all arrays shares the same position for each specific city). And I have two dropdown lists from where the user is supposed to select two cities to calculate the distance...

    ASP.NET MVC 5 Set values for dropdownlist

    c#,asp.net,asp.net-mvc,drop-down-menu,asp.net-mvc-5
    I want to make a DropDownList with a numeric rating from 1-5. I have a rating model and I want to apply these dropdown values to WaitTime, Attentive and Outcome. Can I just set these values in the view and use the model? If so how would i go about...

    CSS drop down navigation

    css,html5,css3,drop-down-menu,navigation
    I'm sure this is something simple I'm missing... My drop down menu is opening within the main navigation, widening it. Here is a link to the page I'm working on. The issue is with the navigation below the App buttons. http://membershq.incentiveusa.com/AwardPages/GoalUp_Test2/index_test3.html# Here is my HTML: <div class="container-fluid"> <div class="section-title2 text-center">...

    How can I Add sub menus to dropdown menus?

    html,css,drop-down-menu,menu,submenu
    I am having extreme dificulties to add a sub-menu to my dropdown, but I am not a pro on css. I would like to put a submenu on the part it says "10º ano" and "11º ano" in the dropdown "projects", but everything I do doesn't work ! How can...

    how to populate dropdown list in Django from a foreignkey model

    python,django,drop-down-menu,foreign-keys
    I have two models. class ArticleCategory(models.Model): category = models.CharField(max_length=255,blank=False) class Article(models.Model): title = models.CharField(max_length=255,blank=False) body = models.TextField() pub_date = models.DateTimeField(auto_now_add=True) category = models.ForeignKey(ArticleCategory,default=1) Now I have to render a template and save the form for Article model. I have a foreignKey field in my Article Model and because of that...

    Removing an option from all other chosen multiple dropdowns, when selected on a particular dropdown

    javascript,jquery,drop-down-menu,jquery-chosen
    I really messed up in a script. But I would want some additional help. I have attached a jsfiddle link over here. http://jsfiddle.net/p0b4j5o8/18/ If you check the fiddle link, you will see that I have written javascript/jquery code( a function named add_mitigator() ) in the html section. When I used...

    (Help) Get results from multiple dropdown with one submit button

    php,html,post,drop-down-menu,submit
    I make four horizontal dropdown menu. Here is my code : <div class="MenuSearching" id="Searching"> <div class="Menu1" id="Menu1"> <p> Lembaga</p> <form style="margin-top:-20px;margin-left:-2px;"> <select name="DropLembaga" autofocus required id="DropLembaga"> <option value="no" selected="selected">---Choose one---</option> <option value="FlashCom">FlashCom</option> <option value="InterNusa">InterNusa</option> <option...

    AngularJS Dropdown Directive Set Selected Item Through Two Way Binding

    angularjs,drop-down-menu,angularjs-directive
    I have an angularjs dropdown directive. I want to be able to pass the id of the item I want to be selected as an attribute of the directive. Something like this: <dropdown selected-item-id="ctrl.selectedItemId"></dropdown> I implemented this and it's not working. If I display the value of itemId on the...

    Create interdependent dropdown list

    php,jquery,mysql,drop-down-menu,mysqli
    I am trying to create two inter dependent dropdown menu. There are 2 tables category and subcategory their structure is given below category table id catname 1 A 2 B Subcategory table id subcatname catid 1 S 1 2 T 1 3 U 2 In the first dropdown i have...

    Chain populate HTML select boxes using AJAX, PHP and MySQL

    php,jquery,mysql,ajax,drop-down-menu
    My special form has two select boxes. I got the first one populate with options from a MySQL database using PHP, during page loading stage. What I'm trying to achieve next is the following: By selecting one of the values from first pre-populated <select> box - the second <select> box...

    Select box to send to ajax code

    ajax,select,drop-down-menu
    I have been using a snippet of code to add data to a mysql database using ajax.I have this working perfectly using a text box to add, however I can't seem to get it working by replacing text box with select box. Here is the original text box: <form class="add-new-task"...

    Bootstrap 3.3.4 Pill Button Dropdowns unresponsive

    html,twitter-bootstrap,drop-down-menu
    Prototyping a categorical classification system, I'm using Boostrap dropdown buttons in a pill-style navigation. I'm not committed to the pills, so if a different class such as a navbar might work instead, I'll change, though I did already try using navbar and button groups. I don't know for sure that...

    Dynamically change a button-drop list in javascript?

    javascript,jquery,twitter-bootstrap,button,drop-down-menu
    Trying to create a changeable button-drop-down from Bootstrap HTML in conjunction with Javascript. The HTML looks as: <div class="btn-group"> <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> Menu <span class="caret"></span> </a> <ul class="dropdown-menu"> <li><a href="#">Choice1</a></li> <li><a href="#">Choice2</a></li> <li><a href="#">Choice3</a></li> <li class="divider"></li> <li><a...

    How can I populate dropdown values dynamically based on prior selection?

    javascript,object,drop-down-menu
    I have 3 dropdowns with some values. I am using JavaScript to pre-populate the first dropdown. Based on the selected value in 1st dropdown, how can I populate values in the rest 2 dropdowns (using pure javascript)? I am framing a URL based on the user selected values in 3...

    How to show unique key exception before saving into database?

    c#,asp.net,gridview,drop-down-menu
    I've created a gridview in which user can enter items and their quantities. The number of items are unknown so the requirement was that to able to add as much items the users want to. So I've given a provision to add item row for another entry. All these data...

    onClick event for dropdown list meteor javascript

    javascript,events,drop-down-menu,meteor
    is there a way I can add a click event to a dropdown menu in Meteor? I know how to do it for buttons, but I couldn't find documentation for dropdown menus. My dropdown menu is: <td> <select id="orderStatus"> <option value="Submitted">Submitted</option> <option value="Sent">Sent</option> <option value="Complete">Complete</option> </select> </td> I want an...

    How to make a Bootstrap radio button continue into a dropdown menu

    html,drop-down-menu,radio-button,bootstrap
    I would like to have a radio button with a couple options showing, and the rest available in a dropdown menu. I can get the interactions I want by assigning every option to a class, but I would like the color of the dropdown menu to change to the active...

    Adding