他, 我有這個頁面,我有一個表中的每個項目旁邊的複選框,並希望允許用戶選擇其中的一些,然後按我的刪除按鈕。我只是不能想出了jQuery爲了使確認窗口,只有「是」推提交 - 這是我的網頁ASP.NET MVC - 如何讓用戶確認刪除
<%Html.BeginForm(); %>
<%List<ShopLandCore.Model.SLGroup> groups = (List<ShopLandCore.Model.SLGroup>)Model; %>
<%Html.RenderPartial("AdminWorkHeader"); %>
<table width="100%" id="ListTable" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5" class="heading">
<input type="submit" name="closeall" value="Close selected" />
<input type="submit" name="deleteall" value="Delete selected" />
</td>
</tr>
<tr>
<th width="20px">
</th>
<th>
Name
</th>
<th>
Description
</th>
<th width="150px">
Created
</th>
<th width="150px">
Closed
</th>
</tr>
<%foreach (ShopLandCore.Model.SLGroup g in groups)
{ %>
<tr>
<td>
<%=Html.CheckBox(g.Id.ToString()) %>
</td>
<td>
<%=g.Name %>
</td>
<td>
<%=g.Description %>
</td>
<td>
<%=g.Created %>
</td>
<td>
<%=g.Closed %>
</td>
</tr>
<%} %>
</table>
<%Html.EndForm(); %>
請注意,它只能進行刪除它應該確認,而不一定是關閉按鈕。