Am having a list item (li) for which am assgining the values dynamically.And while the particular item is selected i want that top be highlighted.
i Used Following Code to do this but as am using runat="server" its not applied.if i removed the runat="server" Javascript is working good .But Li is not treated as a server control anymore and its not enabled in the code behind file.So i cant remove the runat="server" attribute also.
How This can be done.
<li id="adminabout"><asp:LinkButton ID="lbtnadminabout3" runat="server" OnClick="OnClick1" CausesValidation="false"></asp:LinkButton></li>
<li id="admingeneral"><asp:LinkButton ID="lbtnadmingeneral" runat="server" CausesValidation="false" OnClick="OnClick2"></asp:LinkButton></li>
<script type="text/javascript">
function select1()
{
document.getElementById("adminabout").className="selected";
}
function select2()
{
document.getElementById("admingeneral").className="selected";
}
function select3()
{
document.getElementById("admincategory").className="selected";
}
</script>