dropdownlist

Adding hoverIntent to jquery dropdown

Bit of a jquery Newbie here, so go easy. Basically I'm trying to plug hoverIntent into this dropdown menu: http://www.sooperthemes.com/open-source/jquery/jquery-sooperfish-dropdown-menus I've been stuck with this for a few days now, and I know it's probably very simple, but I can't seem to find the right selector to apply the intent f...

Drop down list implementation in R

Hi All, I am using the following code for the Share Price Application I have been developing (with plenty of help from people here that is greatly appreciated!). One of the things it should do is allow the user to pick a company to analyse from stored XML Files, I have been using the following code to do this: df <- xmlToDataFrame(file...

Set textbox visibility based on dropdownlist value in gridview

I have a gridview that i would like to show or hide a text box based on the selected value of a dropdownlist on the same row. My gridview: <asp:GridView ID="GridViewUsers" runat="server" AutoGenerateColumns="False" CssClass="TableFramed"> <Columns> <asp:TemplateField HeaderText="Type"...

Word wrap options in a select list

Is it possible to wrap long options within a select list? I have a dynamic select list, and some of the options are pretty lengthy. I'd like options that are too long to wrap to the next line. Beyond that, I'd like to indent those lines. My solution if this isn't possible is to just trim the result to n characters. Here's what I have:...

how to make auto pull down menu works with frameset?

i failed many times. it's only works once. loaded once only. when i go to other option, it's not work. i copied the script from: http://javascript.internet.com/navigation/menu-auto-frames.html . please trying the script, and check where's the missing script. tq. ...

Change databound Drop Down List programmatically

I have a drop down list that is populated in the page load event from a database table. The drop down has a DataTextField set to a project name and the DataValueField set to the project id (interger). Later I change the dropdowlist selected item with this code in the selectedindexchanged event of a gridview GridViewRow row = GridV...

Accessing radgrid row through object data source

Hello all. I have a radgrid and within said radgrid, I have a templatecolumn that is a lovely drop down list: <telerik:GridTemplateColumn HeaderText="Feedback" UniqueName="Feedback"> <ItemTemplate> <asp:DropDownList ID="ddlFeedback" runat="server" AppendDataBoundItems="True" A...

Specify a default selected item for HTML form drop-downs

Typically when you need to select an item by default, you do: <select> <option value="1"> Volvo </option> <option value="2" selected="true"> Saab </option> <option value="3"> Mercedes </option> <option value="4"> Audi </option> </select> Is it possible to get something like t...

Bound Drop Down List changes to first item in list

I have two drop down list on a page. The first one list projects and the second list users. The userlist is populated with an object datasourse that pulls a list of users for the selected Project. Whenever the Project list selection changes the second ddl Userlist always reverts to the first person in the list instead the person tha...

get text vaule of dropdownlist client side

I am trying to add a client side event to a dropdownlist and I need to access the currently selected Text. I have tried: ddl_tech.Attributes.Add("onclick", "document.getElementById('" + chk_techreview.ClientID + "').disabled = this.options[this.selectedIndex].text.Equals(' UNASSIGNED');"); and ddl_tech.Attributes.Add("onclick", "doc...

JQuery trying to insert html of h3 into a DDL dynamically?

Yet another bit i'm stuck on $("div.evenprop .locname").each(function() { $("#ctl00_dd1 option").val(".locid").html($(this).clone()); });​ <select id="ctl00_dd1" name="ctl00$dd1"> <option value="HANW"></option> <option value="HEYD"></option></select> <div style="displaY: none;"> <div class="evenprop"><h3 class="locname">Hanworth<...

multi column dropdownlist using C#

I want to bind data(For ex: Employee name, Employee ID from Employee) to a dropdownlist and the data should be displayed in dropdownlist as two columns. I don't want to separate this columns by using any special characters like | or '-'. I want to display them as different columns in a dropdownlist. How can i achieve this using .net and...

using autopostback on dropdownlist that also has submit button

Have a dropdown list with autopostback set to 'yes' have another dropdown list box that will be populated based on the selection of the first dropdown. It works fine until I put a submit botton on the form. When I do it appears to not do the auto postback until the submit button is pushed. Can you have a submit button on a form that h...

Bind dropdownlist with integers

Hello. I have an int variable, e.g. int i = 100; What I want to do is binding a ddl with 100 listitems, from 1 to 100. I could cycle the variable and for each number adding a ListItem to the ddl, but I'd like to know if there's an alternative, something like value the DataSource with the variable. Thanks ...

PHP - two multiple select dropdowns, passing user selections into a MySQL query

EDIT: The drop down menus have the following listed in them: Typing Course Daily Marketing Course When using the code below to add selected text form the dropdown into the MySQL statement, only the first word appears ie. 'Typing' and 'Daily', the code looks like this: SELECT * FROM `acme` WHERE `course` IN('Typing', 'Daily')AND `date...

What's the best and easiest way to Populate a dropdown based on another dropdown.

Hi all, Very simply, I have one dropdown menu dynamically populated with data: SQL Code $querycourse = "SELECT course, COUNT(course) AS count FROM acme WHERE course IS NOT NULL GROUP BY course "; $procc = mysqli_prepare($link, $querycourse); $queryc = mysqli_query($link, $querycourse) or die(mysqli_error($link)); PHP Code echo "<s...

Problem with getting selected OBJECT from dropdownlist

I have a problem with getting selected objectfrom my list. I bind collection of users to dropdownlist by: ddlContractors.DataSource = service.GetAllUsers(); ddlContractors.DataTextField = "Name"; ddlContractors.DataValueField = "Id"; ddlContractors.DataBind(); It's working. But when I...

There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'Carrera'.

I'm having trouble when handling the Post request for my controller: [HttpGet] public ActionResult Crear() { CarreraRepository carreraRepository = new CarreraRepository(); var carreras = carreraRepository.FindAll().OrderBy(x => x.Nombre); var carrerasList = new SelectList(carreras, "ID", "Nombre"); ViewData["Carreras"] =...

Selenium IDE: I am not able record a value, selected from a dropdown list for my web application using selenium IDE. Any Help please ?

This is what I am trying to do: Open my web application Go to the details page to create a new entity While creating entity, I need to select some values form the drop down and record it on Selenium IDE Did all the above steps, they were recorded into Selenium IDE When I play back, it is trowing an error whenever it is trying to run th...

mvc LinqToSql add row "Select User" for a dropdown list

I'm new to Linq. I have searched and searched the web for a solution, and can't find anything. I have a Linq query and I want to insert a row ("Select User") to the top before I pass it to the drop down list. I've been trying to use the Union but to now avail (it keeps telling me that my object doesn't support the Union method). My code,...