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