Click to See Complete Forum and Search --> : ToolTip for Drop Down List Items


alon
10-06-2005, 08:20 AM
Hi,

Does anyone know how can I create a web drop down list with different tool tip for each item ?

Thanks,
Alon

takkie
10-06-2005, 02:20 PM
perhaps javascript is the only way to go with this.

cetshenoy
07-13-2007, 06:15 AM
var ddlLength = document.frmCADiary.ddlEventType.options.length;
for (var ddlCount = 0 ; ddlCount < ddlLength ; ddlCount++)
{
document.frmCADiary.ddlEventType.options[ddlCount].setAttribute
("title",document.frmCADiary.ddlEventType.options[ddlCount].text)
}

The ddlEventType is the name of the Drop down list..


Thanks
Shenoy

sudharsong
10-08-2007, 02:20 AM
Hi it is not working in IE 6,you have any idea about that .....

thangapandi
10-09-2007, 03:21 AM
use IE 6. Insteed

shiekh.bilal
01-31-2008, 08:27 AM
Copy and paste below code while binding DropDown

ddlOrganizationName.Items[i].Attributes.Add("title", dsList.Tables[0].Rows[i]["Name"].ToString());

raktim
04-21-2008, 01:27 AM
What are the terms "DDLOrganisationName" and "dsList" referring to?

chazzy
04-21-2008, 09:49 AM
probably fields on the page.