我隐藏了删除按钮“imgbtnDeleteGroups”来删除转发器中的项目,但我的问题是我的“btnDeleteGroups”没有显示 imgbtnDeleteGroups
<div class="Group">
<div class="row-fluid">
<h3 class="font-black">Groups</h3>
</div>
<div class="row-fluid bottom clearfix group-div">
<asp:LinkButton ID="lnkBtnAllGroup" runat="server" OnClick="lnkBtnAllGroup_Click"
CssClass="btn lts-darkgray">All</asp:LinkButton>
<asp:Repeater ID="rptGroup" runat="server" OnItemCommand="rptGroup_ItemCommand">
<ItemTemplate>
<div class="GroupLink btn lts-blue">
<asp:HiddenField ID="hfGroupID" runat="server" Value='<%# Eval("GroupID") %>'
/>
<asp:LinkButton ID="GroupBTN" runat="server" OnClick="LinkButton1_Click">
<%# Eval( "name") %>
</asp:LinkButton>
</div>
<asp:ImageButton ID="imgbtnDeleteGroups" CssClass="btnDelete hideDeleteBtn"
runat="server" CommandName="deleteGroup" ImageUrl="~/DesktopModules/ResourceGrouping/img/off.png"
ClientIDMode="Static" />
</ItemTemplate>
</asp:Repeater>
<div class="groupName">
<asp:TextBox ID="txtbGroupName" runat="server" placeholder="New Group"></asp:TextBox>
<asp:Button ID="btnCreateGroup" runat="server" Text="Create Group"
OnClick="btnCreateGroup_Click" UseSubmitBehavior="false" CssClass="btn lts-green group-dropdown"
/>
<input id="btnDeleteGroups" type="button" name="" value="Delete Group"
/>
</div>
<div class="divbreak">
<img src="/DesktopModules/ResourceGrouping/img/divbreak-white.png" />
</div>
</div>
</div>
Javascript:
$("#btnDeleteGroups").click(function () {
//alert("sdvsd");
$("#Group").find(".btnDelete").removeClass("hideDeleteBtn");
});