我需要检查是否有条件并禁用colorbox,反之亦然。帮帮我
if($(".usercert:checked").length > 0){
//I need to enable colorbox
}else{
// I need to disable colorbox
}
答案 0 :(得分:0)
if($(".usercert:checked").length > 0){
//do something
}else{
$(classname).removeClass('cboxElement');
}