0
我动态绘制选框在我的表列表:如何使AJAX回发的形式复选框
@using (Html.BeginForm("Action", "Controller", FormMethod.Post, new { id="itemsList"}))
{
foreach (var lt in Model.MyList)
{
<li>
<label id="label">
<input value="@lt.itemId" type="checkbox" />
@lt.Title</label>
</li>
}
}
jQuery函数:
$(document).ready(function() {
$('#itemsList').ajaxForm({
success: Saved,
error: HandleError
});
});
...
但是我的动作没有被解雇。我在这里做错了什么?我期待当我检查复选框使服务器调用。