您的位置:首页 > 其它

how to know whether an element has an class

2008-09-26 12:05 507 查看
use the function hasClass to know whether an element has an class
example:
//store state in cookie
if(li.hasClass(CLASSES.open)){
TreeState = false;
}else{
TreeState = true;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: