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