99问答网
所有问题
asp.net后台怎么获取前台html页复选框选中的行的编号值,就这里那个ht2["YSID"] = 的item怎么获取出来?
如题所述
举报该问题
推荐答案 推荐于2016-05-02
var chk_value =[];//定义一个数组
$('input[name="interest"]:checked').each(function(){//遍历每一个名字为interest的复选框,其中选中的执行函数
chk_value.push($(this).val());//将选中的值添加到数组chk_value中
});
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://99.wendadaohang.com/zd/vtWW77jWezWBjXBOBeO.html
相似回答
大家正在搜