1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
function addTRToPriceDetails(item){
priceDetailIndex++;
emplacement = document.getElementById("tableResult");
//-- création d'une ligne ----------
tr = document.createElement("TR");
tr.setAttribute('id',"tr_"+priceDetailIndex);
ligne = emplacement.appendChild(tr);
// creation de td1
td1 = document.createElement("TD");
td1.className='text3Table';
cellule = ligne.appendChild(td1);
div1=document.createElement("DIV");
div1.className='text8Table';
text1 = cellule.appendChild(div1);
text1.innerHTML = item[0];
// creation de td2
td2 = document.createElement("TD");
td2.className='text2Table';
cellule = ligne.appendChild(td2);
cellule.innerHTML =item[9] + " - " + item[10];
} |
Partager