// 已选列表checkbox
$(".choised_list_table th input").click(function(){
if($(this).attr('checked') == "checked"){
// 选中
$(this).parents("table").find("td input").attr("checked","checked");
}else{
// 取消
$(this).parents("table").find("td input").removeAttr("checked");
}
});
(礼拜四log)前端开发:使用jq控制input checkbox的选中和取消
最新推荐文章于 2023-07-17 22:59:29 发布