The <li> tags generated by ASP.NET when I programatically add ListItems to my ListBox control do not have ID attributes. Is there any way that I can get them to have IDs so that I can get references to the elements from Javascript?
The <li> tags generated by ASP.NET when I programatically add ListItems to my ListBox
Share
Use the ListItem’s attribute collection, like this…