jquery复选框 选中事件 及其判断是否被选中

$(":checkbox").change(function () {
    if($(this).is(':checked')){
        $(this).parent("span").css({
            "color":"#50A0F8"
        })
    }else{
        $(this).parent("span").css({
            "color":"#666"
        })
    }
});
引用地址:http://blog.csdn.net/u010428037/article/details/50988000
posted @ 2017-04-25 10:27  编程-一生坚持的事业  阅读(118)  评论(0)    收藏  举报