Parentsuntil sans jQuery
const closestElement = targetElement.closest(".parent_element");
KostasX
const closestElement = targetElement.closest(".parent_element");