Thanks for getting back to me.
Yes, I had a look a the to and from methods and thought this was the obvious answer, but could not get it to work.
I suspect that everytime I replace the html inside the content-container, I am removing a reference to the element to the dynamic-content div. Therefore, I thought it might work by getting a new reference on the click handler function, but still no luck.
Here is a link to a demo on codepen:
So when I click on the content, I want it to randomly populate the div with content fro