dropdown

Help with asp.net mvc select dropdown

I have a marital status field in my users table that its just varchar yet I only want to give the users four options (married, single, widowed and divorced) and i want to have the correct one selected when Im editing the form.. is it possible? please help. ...

autocomplete dropdown in Infragistics ultrawebgrid cell

Hi, I want to an autocomplete dropdown control in the ultrawebgrid cell in edit mode, so user can type the data and value is filled in automatically if exists, invalid data should not be permitted. is this possible? I don't want to use webcombo, it is too heavy and I don't need a multi-column dropdown. I want a simple dropdownlist, but ...

Dropdown Menus In Drupal?

Hi, I have my Drupal site here so far: selkirk.treethink.net Each Primary Link at the top has a bunch of other primary links under it (sub links) I need to display these sub links when you hover over the parent primary link in a dropdown menu. Everything is in the primary links but there are parents (what you see at the top of the dem...

Pure CSS DropDown Menu Dilemma (Help!)

I have a Pure CSS Dropdown menu in my banner div: HTML: <div id="banner"> <h1><a href="http://widerdesign.co.nr/"&gt;wider design</a></h1> <ul id="lang"> <li><a href="index.php">English</a></li> <li class="drop"><a href="es/index.php">Español</a></li> <li class="drop"><a href="tw/inde...

DropDown list onchange event

HOw can i change content of ViewData on drop down list change using javascript in MVC View? ...

JQUERY hover dropdown with hoverIntent

Hello, I am creating a dropdown that slides down when hovered over. This is some code that I had. I want to use HoverIntent to accomplish this goal. .menu_img is the class on the image that is hovered over to start the slide down of the list .page_nav is the class on the list that slides down when .menu_img is hovered over. $(docu...

My Dropdown menu works right on every browser but IE 7. Why?

I'm making some basic drop down menus based on this tutorial So its all dandy except for IE7. It appears when you hover on it but when you move the mouse from the main element to the ones below it it hides again. /* General */ #cssdropdown { position:absolute; right:0px; top:0px; font-size:medium; font-weight:bold; } #cssdropdown, #cssd...

How do I make a jQuery dropdown checklist hide until it's built properly in IE6?

I'm using the jQuery dropdown checklist plug-in. When the it gets wired up to a multi-select box, you can see the multi-select render for an instant then the correct looking dropdown shows up. It's noticeable on page load but it's especially ugly on partial postbacks when it flashes the larger multi-select for an instant. I was thin...

Android 2 line AutoCompleteTextView dropdown

I am writing an Android app that uses an AutoCompleteTextView just like the API example. The problem is that my text is too long and needs to wrap when the dropdown occurs. I have a custom list_item.xml, but only one line of text displays. The list_item.xml layout wraps to 2 lines if used with a spinner, but not with the AutoCompleteT...

simple jquery dropdown - clearTimeout, setTimeout issues

HTML: <ul class="topnav"> <li><a href="#"><span>One</span></a></li> <li><a href="#"><span>Two</span></a></li> <li> <li><a href="#"><span>Three</span></a></li> <ul class="subnav"> <li><a href="#">A</a></li> <li><a href="#">B</a></li> <li><a href="#">C</a></li> </ul> ...

dropdown unsorted list css - vertical issue

hello I have a css script for unsorted list (vertical) drop down list that has two problem- 1. in ie7 it shifts. 2. the first sub menu, the top positions is not leveled with the main level. (the second sub menu is fine). here is the code : #nav, #nav ul { margin: 0; padding: 0; list-style-type: none; list-style-positio...

Return original selection in collection_select when editing entry

Hello boys and girls. I'm trying to get my head around collection_selects in Rails. I can populate the dropdown from a database table, submit the selected option, and show the result. However I can't figure out how to show the selected option in the dropdown when the user chooses to edit the entry. Here's an extract from my view code: ...

How to detect the selected value of a dropdown

When I select one item from 1st dropdown, an ajax event will fire up, invoke another function that will and load information to the second dropdown. I do not want this (No button solution please) <select id=combo1> <option>...</option> ... </select> <input type=button onclick="loadCombo2()"> ...

DIV dropdown (jQuery)

I'm looking to create a basic DIV based dropdown menu: <ul id="menu"> <li> <a href="#">item 1</a> <div class="submenu">something here</div> </li> <li> <a href="#">item 2</a> <div class="submenu">something else here</div> </li> <li> <a href="#">item 3</a> <div class="sub...

jQuery Hovermenu

I have a div("dv1") with AJAX update panel inside which contains multiple dropdown controls. These controls do a postback when the index is changed. Then I use a jQuery hover function like the one below: $('#lblDate').hover($('#dv1').slideDown(),$('#dv1').slideUp()); This works fine when I hover on the label, but whenever I try to sel...

Maintain hover state (jQuery)

HTML: <ul class="dropdown"> <li><a href="#">Item 1</a></li> <li> <a href="#">Item 2</a> <div class="submenu">something</div> </li> </ul> jQuery: $j("ul.dropdown li").hover(function () { $j(this).addClass("hover"); $j('div.submenu', this).css('visibility', 'visible'); }, function () ...

How do I create an array of values from a drop down list?

How do I create an array of values from a drop down list? ...

Dropdown hover state

HTML: <ul class="dropdown"> <li><a href="#">Item 1</a></li> <li> <a href="#">Item 2</a> <div class="submenu">something</div> </li> </ul> jQuery: $j("ul.dropdown li").hover(function () { $j(this).addClass("hover"); $j('div.submenu', this).css('visibility', 'visible').hover(function () { ...

How to validate that a dropdown list item has been selected

Well, this must be easy, but ... I have a dropdown list in my view: <%= Html.DropDownList("ddlDistricts", Model.clients.DistrictList,"-- select district --", new { @class = "ddltext", style="width: 200px", onchange = "this.form.submit();" }) %> Model.clients.DistrictList is of type SelectList. What I want to do is make sure the ...

jQuery: Get selected option from dropdown

I am trying to get the selected option from a dropdown and populate another item with that text, as follows. IE is barking up a storm and it doesn't work in Firefox: $('#ddlCodes').change(function() { $('#txtEntry2').text('#ddlCodes option:selected').text(); }); What am I doing wrong? ...