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