How to write “if not class” jQuery selector? August 22, 2023 by Tarik var p = $("li:last").not(".Class"); http://api.jquery.com/not/