我已经创建了一个MVC复选框列表,现在我需要把选中的复选框值使用jQuery进一步coding.But我正在服用的复选框值有问题,我的代码如下如何获取mvc中动态复选框的选定值?
@{
int i = 1;
foreach (CheckBoxList item in Model.Items)
{
<input type="checkbox" name="#= Text #" id="#= Text#(i) #" value="#= item.Value #" />
<span> @item.Text</span>
<br/>
i++;
}
}
告诉我如何使用jQuery
感谢事先检索复选框值