4a.11. Finding the "top5" <div>Next, let's get the "top5" <div> element from the browser's DOM tree. You'll need to add the <img> element that was clicked on to the "top5" <div>, and then remove the <img>'s onClick handler, so it no longer runs addToTop5() when it's clicked. function addToTop5() { var imgElement = this; var top5Element = document.getElementById("top5");Now you've got the CD cover image and the "top5" <div> that you need to add the cover to. } |