Spirtt0,
function addInput(){
var newDiv=document.createElement('div');
var newTrack = document.createElement('input');
var trackNumber = 'track'+tracknum;
newTrack.setAttribute('id',trackNumber);
newTrack.setAttribute('name',trackNumber);
newTrack.setAttribute('type','text');
newTrack.setAttribute('size','60');
var select = document.createElement('select');
select.setAttribute('name','ltrack'+ tracknum);
for(var key in lyricslist) {
select.options[select.options.length] = new Option(lyricslist[key].title, lyricslist[key].id);
}
newDiv.appendChild(newTrack);
newDiv.appendChild(select);
document.getElementById('dynamicInput').appendChild(newDiv);
tracknum++;
}