📌  相关文章
📜  jquery 检查元素是否具有以 - Javascript 代码示例开头的类

📅  最后修改于: 2022-03-11 15:03:16.093000             🧑  作者: Mango

代码示例1
/* Answer to: "jquery check if element has class starting with" */

if(!$(this).is('[class*="answerbox"]')) {
    //Finds element with no answerbox class
} else {
    //The element has already an answerbox class
}