JavaScript najłatwiejszy sposób na zdobycie drugiego rodzica
// If you want to target the parent by tagName you could use .closest(selector); like :
var x = document.getElementById("myLI").closest('section');
// NOTE : Take a look to the Browser compatibility section.
Classy Answer