how to check div has not class in jquery code example Example: has not class jquery if (!$(this).hasClass("test")) {