js判断复选框是否被选中

需要js个jq都写

$('.zc0207-cjzp-2-content').find(':checkbox:eq(0)').click(function(){
if($(this).is(':checked')) {
$('.zc0207-cjzp-2-content').find(':checkbox:eq(1)').attr('disabled','disabled');
}else{
$('.zc0207-cjzp-2-content').find(':checkbox:eq(1)').removeAttr('disabled');
}
})
posted @ 2015-02-09 14:09  Nmoand  阅读(1421)  评论(0编辑  收藏  举报