我有以下菜单:
<div>
<ul class="menu">
<li id="2" class="inactive"><a href="frm_Items.aspx" id="lnk_Draft" runat="server">1
<asp:Label ID="lbl_DraftCount" runat="server" CssClass="counter"></asp:Label></a></li>
<li id="3" class="inactive"><a href="#" id="lnk_Inbox" runat="server">2
<asp:Label ID="lbl_InboxCount" runat="server" CssClass="counter"></asp:Label></a></li>
<li id="4" class="inactive"><a href="#" id="lnk_Outbox" runat="server">3
<asp:Label ID="lbl_OutboxCount" runat="server" CssClass="counter"></asp:Label></a></li>
<li id="5" class="inactive"><a href="#" id="lnk_Archive" runat="server">4
<asp:Label ID="lbl_ArchiveCount" runat="server" CssClass="counter"></asp:Label></a></li>
<li id="6" class="inactive"><a href="#" id="lnk_New" runat="server">5 </a></li>
<li id="Li1" class="inactive"><a href="#" id="lnk_Search" runat="server">6 </a>
</li>
</ul>
</div>
我有一个 css 类active
,我想要一些 jquery 根据用户点击在活动和非活动之间切换。