jQuery If DIV Doesn’t Have Class “x” October 12, 2022 by Tarik Use the “not” selector. For example, instead of: $(".thumbs").hover() try: $(".thumbs:not(.selected)").hover()