(礼拜四log)前端开发:使用jq控制input checkbox的选中和取消

来源:互联网 发布:吴敬中 知乎 编辑:程序博客网 时间:2024/05/18 22:42
// 已选列表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");    }});
0 0
原创粉丝点击