none
Drop down List Change Tool Tip Back Color RRS feed

  • Question

  • Hi All,

    I need to change the back color tool tip text which is in Yellow color by default as in image below.

    Code that I have tried,

    <asp:DropDownList ID="drpaddress" runat="server">    <asp:ListItem Value="1">A</asp:ListItem>
    <asp:ListItem Value="2">B</asp:ListItem> 
    <asp:ListItem Value="3">C</asp:ListItem>    
    </asp:DropDownList>
    
    
     foreach (ListItem item in drpaddress.Items)
         {
         item.Attributes.Add("title", item.Text);
        //item.Attributes.Add("style", "background-color: red;");
          }

    Line "item.Attributes.Add("style", "background-color: red;");" changes the back color drop down list item, but not the tool tip.

    Any suggestion please?

    Thanks,

    Meenakshi

    • Moved by CoolDadTx Wednesday, December 6, 2017 2:28 PM ASP.NET related
    Wednesday, December 6, 2017 11:37 AM

All replies