FAQ Database Discussion Community

How can I add a Submenu to the WordPress Admin Bar

I need to add a dropdown menu to Wordpress in the admin bar to include multiple links. What is the best solution?

How can I manage the dimansions of #homeSub in CSS so it won't diappear when I move my mouse from homeBox to homeSub?

when I hover over #homeBox, #homeSub appears. But when I want to move my mouse to click on #homeSub it disappears. I know that it should naturally appear and disappear as a toggle effect but I need to fix the position so #homeSub will only disappear when I move the...

Bootstrap wrap menu elements at 960px

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/...

Click Event is executed automatically

I'm having this code $(".menu").on('click', function(e) { e.preventDefault(); $(this).addClass("open").children("div").slideDown(200); }); $(document).on('click', ".menu.open", function(e) { e.preventDefault(); $(this).removeClass("open").children("div").slideUp(200); }); when I click the .menu the inner div slides down but it slides up again immediately and the open class is removed that's by only 1 click so how to fix this and...

Remove Specific Value from DropDown

I am beginner to the dot.net, can any one suggest me how to remove specific value in fetched dropdown list. Here why I am mentioning fetched means that dropdownlist is generated from or fetched from a table using sql. sqlquery=SELECT DISTINCT rtrim(ltrim(C.Cust_name)) as Cust_name FROM table1 A inner join table2...

Open sub-menu without creating empty space [closed]

I've tried to solve my problem, but the answers did not solve my specific problem. When the sub-menu expands, empty space shows up, although the sub-menu is placed on the left of the dropdown-menu. I've embedded the code of my navbar here: 'jsfiddle.net/nickiname/Lds2bkuv/' <!-- Fixed navbar --> <div class="navbar navbar-default...

How to add menu items separators programmatically on Windows?

I have a mainmenu on my Form and I want to be able to insert separator to it programmatically not during design time. I went through context popup menu for the mainmenu that lists all the available properties and did not find anything that will allow me to insert separator....

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

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

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

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

Based on

I'm trying to get my select option to show the selected category from my DB in the dropdown. I can only get it to show it, when i hit my submit button. <?php (isset($_POST["kategori"])) ? $kategori = $_POST["kategori"] : $kategori=1; $sql = "SELECT * FROM kategori" $result = mysqli_query($db, $sql);...

VBA: Detecting value in cell with dropdown list

I am having some trouble detecting the value in a cell with a dropdown list. When I am running the below code, it only gives me the value 0 in column I. Column H contains a number of Dropdown lists (made by data validation), which value can either be Yes...

Excel, Want to Create Dropdown Based on a “yes” Cell

The issue is pretty simple, but I can't seem to solve it or find an answer. I have one cell A2 that activates with a yes/no based on what the user enters elsewhere. I would like to create a drop-down list in another cell A3 only if A2 has a...

Create a new select dropdown object with jQuery

I am trying to create a select (<select><option...</select>) object in jQuery. I tried this, but it won't add the option values and text: var photos = [ '_DSC0153.jpg', '_DSC0154.jpg' ]; var dropdown = $("<select>", { id: 'selectfile' , option: { value: '0', text: photos[0] } , option: { value: '1',...

How to remove all the borders of a selectbox?

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

AngularJS dropdownlist with treeview

I am new to angularjs, i want to use dropdownlist with treeview structure. i used both dropdownlist and treeview control separately but find difficulty in using together. can anyone have idea about how to use both together(dropdownlist+treeview)

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

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

Drop-down menu not working in chrome

I'm having issue with my drop-down menus on both windows and mac versions of chrome. I tried some fixes out there but I can't figure it out. Any advice would be great! I think there is a z-index issue, but I can't figure out where it is. Here is the...

Style select box drop-down menu like a table

i am using a select box in my codes which contains 50 options, by default when i click on it, drop down menu appears like below: <select name="Select1" style="width: 56px"> <option></option> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> </select> but i want it to appears like a table i tried some CSS...

Create interdependent dropdown list

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

CSS dropdown 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...

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

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

Can't set headings for every column in dropdown 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...

jquery tabbed selector with dropdown selectors, dropdowns don't match on tab switch

Thanks to help from members oka and Mike Robinson, I have managed to build two tables that users will view and play with using tabs and dropdowns. My two tables have identical structures, each has an identical drop-down menu to show/hide columns. The idea is for the user to select...

How to filter values in Multiple selection using textbox value

I have a text box and multiple selection box. When ever I write something in text box it will filter that text in the multiple selection and show only matched value. <!DOCTYPE html> <html> <body> <select id="uniqueCarNames" name="cars" multiple> <option value="volvo">Long Distance Travel</option> <option value="saab">Amazing </option> <option value="opel">Excellent Travelling</option> <option...

How to populate a DropDownList in a DataGrid?

I have a DataGrid that displays information about trailers. I decided to change the location column to a DropDownList so the location can be easily changed. But I am not sure how to populate the DropDownList. <asp:DataGrid runat="server" CssClass="tblResults" OnItemDataBound="dgList_ItemCreated" OnRowDataBound="OnRowDataBound" AllowSorting="true" OnSortCommand="dgTrailer_Sort" ID="dgTrailers" DataKeyField="ID" AutoGenerateColumns="false"> <Columns> <asp:BoundColumn DataField="TrailerOwner" HeaderText="Owner"...

Bootstrap dropdown selection makes screen jump

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

onClick event for dropdown list meteor javascript

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