What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-06 16:33:13
jquery check if element has class starting with
/* 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 } Add solution