버튼이있는 리피터가 있습니다. 해당 버튼의 onclientclick은 각각의 div를 제거한 다음 ajax를 사용하여 db 쿼리를 수행해야합니다.jquery에서 div 제거
내가 div.remove() 작업을 잘하고있을 때. 내가 아약스의 성공 부분 ..에서 제거 코드를 배치 할 때하지만 .. 페이지가 잘 작동 상쾌한 후
내 코드는 ...
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1" >
<ItemTemplate>
<div class="grid_4" data-gen="afc" data-gen-offset="bottom-in-view" id='<%#Eval("Id") %>'>
<a class="services-block" href="#">
<ul class="icon">
<li class="fontawesome-icon large circle-two fa fa-laptop"></li>
<li class="fontawesome-icon large circle-deg-two fa fa-laptop"></li>
</ul>
<p>
<asp:Label ID="lblGameTitle" runat="server" Text='<%# Eval("GameName") %>'></asp:Label></p>
<div class="text">
<asp:Label ID="lblOpponent" runat="server" Text='<%# Eval("OpponentOne") + " Vs. "+ Eval("OpponentTwo") %>'></asp:Label>
<br />
<asp:Label ID="lblDateTime" runat="server" Text='<%# "Date : "+ Eval("GameDate") + "<br />Time : " + Eval("GameTime") %>'></asp:Label>
<br />
<asp:RadioButton ID="rbtnBlue" runat="server" Text="High" GroupName="UrlColor" Checked="true" />
<asp:RadioButton ID="rbtnRed" runat="server" Text="Low" GroupName="UrlColor" />
<asp:Button ID="btnOpponentOne" runat="server" Text='<%# Eval("OpponentOne") %>' OnClientClick="opponentOne(this);"/>
<asp:Button ID="btnOpponentTwo" runat="server" Text='<%# Eval("OpponentTwo") %>' OnClientClick="opponentTwo(this);"/>
<asp:Button ID="btnDraw" runat="server" Text="Draw" OnClientClick="Draw(this);"/>
<br />
</div>
</a>
</div>
<asp:HiddenField ID="gid" runat="server" Value='<%# Eval("ID") %>' />
<asp:HiddenField ID="opOne" runat="server" Value='<%# Eval("OpponentOne") %>' />
<asp:HiddenField ID="opTwo" runat="server" Value='<%# Eval("OpponentTwo") %>' />
</ItemTemplate>
</asp:Repeater>
<%-- <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />--%>
</ContentTemplate>
</asp:UpdatePanel>
와 JS를 working..but하지 ...
경고가 즉시 작동합니까, 아니면 페이지를 새로 고친 직후입니까? – Arman