Ok, people, I need your help. I\'ve found some code here on Stackoverflow (can\'t find that link) which generate HTML code dynamically via JS. Here is code:
Step 1. Let's create a function to return us an ordered HTML listview. Note we are passing in an array of data:
function createListView(spacecrafts){
var listView=document.createElement('ol');
for(var i=0;i
Step 2. Then let's display our listview in your div:
document.getElementById("displaySectionID").appendChild(createListView(myArr));