Hi All,
I want to display selected value of All asp.net Input controls( Listbox,dropdown,Textbox).
I juz need a dynamic script to fetch the selected value and display it in tooltip.
i have 100s of pages if I place in master page it should work.
ANy idea!!!
if it is listbox all selected values should be in tooltip...
if it is textbox or dropdown enogh to show available value in tooltip
Advanced thanks
Loading
Lalit MPosted Aug 25, 2011, 7:13 AM
foreach (ListItem _listItem in this.DropDownList1.Items)
{
_listItem.Attributes.Add("title", _listItem.Text);
}
// add a tooltip for the selected item also
DropDownList1.Attributes.Add("onmouseover", "this.title=this.options[this.selectedIndex].title");