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