
如何在cs文件中获取已选中Table中的checkbox所在行其他列的值
2个回答
展开全部
Table 中的行可以先 得到选中CheckBox的值,然后去循环改行其他列的值;
既然是Table那肯定可以用js来实现了!jquery脚本如下:
$("#Table1 tr").each(function(i){
if($(this).find("td:gt(0) checkbox:checked").style.checked=="true")
{
var txt="";//其它列的值
txt=$(this).next().text();
}
});
既然是Table那肯定可以用js来实现了!jquery脚本如下:
$("#Table1 tr").each(function(i){
if($(this).find("td:gt(0) checkbox:checked").style.checked=="true")
{
var txt="";//其它列的值
txt=$(this).next().text();
}
});
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询