Any help will be appreciated. With this, you only need one event listener on the ul#list and it will work for all elements you dynamically attach to it: Here's a simplified example so you can see what happens with the code: You'll have to set the eventListener on each single item, as document.getElementsByClassName() returns a collection of items and you can't simply add an event listener to all of them with one call of addEventListener(). will // appear. Asking a faculty member at my university that I have not met(!) When I type in the appendChild() function, it doesn't work, and when I check the developer tools, it tells me that it's not a function. Stack Overflow for Teams is a private, secure spot for you and ');}); // For compatibility, a non-function object with a `handleEvent` … When I click the button it clears the form but doesn't do anything else. your coworkers to find and share information. The addEventListener() method makes it easier to control how the event reacts to bubbling. Note: This little vanilla framework uses the FileReader API, which is a recent technique (but only when there are files to upload, the method of the