jquery element with not class code example Example: has not class jquery if (!$(this).hasClass("test")) {