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