asp.net后台怎么获取前台html页复选框选中的行的编号值,就这里那个ht2["YSID"] = 的item怎么获取出来?

如题所述

var chk_value =[];//定义一个数组
$('input[name="interest"]:checked').each(function(){//遍历每一个名字为interest的复选框,其中选中的执行函数
chk_value.push($(this).val());//将选中的值添加到数组chk_value中
});
温馨提示:答案为网友推荐,仅供参考
相似回答
大家正在搜