if paren has class hide parents parent code example Example: jquery get the parent node $(selector).parent(filter)