function aaa(){
var Check = $("table input[type=checkbox]:checked");//在table中找input下类型为checkbox
Check.each(function () {//遍历
var value = $(this).parents("tr").find("td").eq(2).find("input").val(); //获取其相对应的value值
var values = $(this).parents("tr").find("td").eq(2).find("input").attr("ID");//获取id
$(this).parents("tr").remove();//删除选中的行
$("#***").css("display", 'none');//通过id设置样式
$("#***").val("");//通过id设置value
});
}
js 获取checkbox选中的行及相应操作
猜你喜欢
转载自blog.csdn.net/c15162/article/details/109179089
今日推荐
周排行