jquery实现点击table行变色且选中该行的radio

来源:互联网 发布:数据挖掘的技术基础 编辑:程序博客网 时间:2024/06/12 22:32
function trSelect() {        $("tbody tr").click(function () {            $(this).prop("style", "background-color:#ececec").siblings().prop("style", "background-color:#ffffff");            $("tbody input:radio").removeAttr("checked");            $(this).find("input:radio").attr("checked", true);        });    }

阅读全文
0 0
原创粉丝点击