JavaScript Dapatkan Elemen Anak dengan ID Orang Tua
parent = document.querySelector('.parent');
children = parent.children; // [<div class="child1">]
Tough Tiger
parent = document.querySelector('.parent');
children = parent.children; // [<div class="child1">]
parent = document.getElementById('parent_id');
child = parent.querySelector('.className');