Adding Tooltip to Dropdown List Items

Here is a way to add tool tips to items in dropdownlist.

//Assuming dropdownLis1 is already Bound.      
foreach (ListItem listItem in dropdownList1.Items)
{
listItem.Attributes.Add("title", “tooltip text”);
}



 



Hope this Helps



Cheers!!!

0 Responses to "Adding Tooltip to Dropdown List Items"

Post a Comment