HTML
<ul id="generate">
</ul>
<button id="btn">Make LI tags</button>
Javascript
function create(description)
{
var li = document.createElement('li');
li.id = 'idName';
li.className="className";
li.appendChild(document.createTextNode(description)); // description will be the text inside li
document.getElementById('generate').appendChild(li);
}
document.getElementById('btn').addEventListener('click', function()
{
create('text');
}, false);
solved how to create an html link out of list items through javascript