0
点赞
收藏
分享

微信扫一扫

判断当前的是否被选中

在觉 2023-01-31 阅读 63

$(".change_do").click(function(){
num = $(this).attr('change_do');
var do_tag = false;
$(".change_do_"+num).each(function(){

if($(this).attr("checked")==true)
{
do_tag= true;
}
});

if(do_tag == true)
{

$("#change_score_"+num).html('已做');
$("#change_score_"+num).css('color','blue');
}else
{
$("#change_score_"+num).html('未做');
$("#change_score_"+num).css('color','red');
} });

举报

相关推荐

0 条评论