views:

728

answers:

2

Is there anyway of showing a tooltip on the dropdown list? such as when the list is dropped and a person hovers over each option a tooltip or something with details appears. this is for a drop down list with a cascading drop down.

this is for asp.net

+2  A: 

Marco, not sure what browser your demographic is, but the standard code below works for FF.

<select>
<option value="1" title="this is text about the value">Option 1</option>
</select>
Eddie
A: 

You can do something like this in code behind (c#):

        foreach (Widget w in Widgets)
        {
            ListItem item = new ListItem(w.Name, w.WidgetID.ToString());
            item.Attributes.Add("title", w.TooltipText);

            ddlWidgets.Items.Add(item);
        }
Harrison