Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
243 B
1
Indexable
Never
Array.from(document.getElementsByClassName('deleteBook')).forEach(item => item.addEventListener('click', ()=>{
    let parent = item.parentElement(); 
    let grand_father = parent.parentElement();
    grand_father.removeChild(parent);  
}));