我想立即更新一个状态行,指示asp.net网格视图所有页面上选中的复选框的数量。现在,我只能熟练地计算当前网格视图页面上选中的复选框的数量。
下面是我的代码:
$(document).ready(initAll);
function initAll(){
countChecked();
$(".activeBoxes").click(countChecked);
}
function countChecked() {
var n = $(".activeBoxes input:checked").length;
$(&
我是asp.net mvc的新手,目前正在使用mvc2,几天来我一直在努力使用复选框。我只需要得到选中的复选框值保存在数据库中,并在编辑视图中检查它们。
<input type="checkbox" id="coduit for safety near motor" name="Prepration" value="coduit for safety near motor"/><br />
<input type="checkbox" id="coduit for far s