javascript se rapproche l'élément par classe
let child = document.querySelector('.child');
let parent = child.closest('.parrent');
console.log(parent);
Filthy Flatworm
let child = document.querySelector('.child');
let parent = child.closest('.parrent');
console.log(parent);