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