Skip to content

Tag: object

Dynamically populating HTML with JavaScript objects

I have a js file containing data in the form of objects : I want to recreate the below structure dynamically: I want to do this with only JavaScript. I tried appending and creating new elements but I have to do it for each object. I think I am to create a function that loops through all the objects and