How to select an element which parent is not specified class? August 19, 2023 by Tarik The best way I think: $(".children").not(".current_page_parent .children").hide(); JSFiddle