I basically want to insert content in a div element into another div element by a click of a button.
So I moved on to the “workflow” and tried to create my own custom javascript to do that. However, it gives me errors. The example code:
var div = document.getElementById('myDiv');
var newElement = document.createElement('p');
newElement.textContent = 'Hello, world!';
div.appendChild(newElement);
So I bound the array to the parent div, and I created a work that appends to the binded array. However, the actual div information is still lost to me. Below is the workflow I am using
But the div doesn’t actually show up to the array of trayContents, when I click on my button.
The screen shot below is showing empty objects when I fill the array with stuff.