var cell_2 = row.insertCell(1); var el = document.createElement('select'); el.lenght = 2; el.name = 'thema_aktion' + rowNum; el.id = 'row_name_id' + rowNum; el.size = 1; var status = new Array("A", "I"); for (var i = 0; i < status.length; i++){ el.options[el.length] = new Option(status[i], status[i]); } cell_2.appendChild(el);