Здравствуйте.
на странице есть объект
<table id="report_table" class="table table-hover table-striped table-condensed" border="1" bordercolor="#cccccc"/>
в него java script добавляю head
var table = document.getElementById("report_table");
var thead = table.createTHead();
thead.setAttribute('style', 'background-color: #2780e3; color: #fff;');
var list_thead=["№ п/п", "1 - категория"];
var row = thead.insertRow(0), cell;
for (var i=0; i<list_thead.length; i++) {
cell = row.insertCell(i);
cell.innerHTML = list_thead[i];
}
хотелось бы, чтобы под head '1 - категория" добавились "Наименование" и "Количество"
Как это правильно сделать на java script?