Skip to content

Tag: javascript

Using Javascript FileReader in forEach loop to append elements

I am using the FileReader to insert HTML to a preview element. That parts works. However I need to manipulate the elements after they are inserted. When I try to select the inserted elements with (let previews = document.querySelectorAll(‘.fb-preview li’);) I get and empty node array. I was under …