Caricamento...
var newtable = document.getElementById('table_add0'); //Prendo l'elemento tabella
var lastRow = newtable.rows.length; //Ricavo il totale delle righe
var row = newtable.insertRow(lastRow); //Creo una riga alla fine della tabella
newtable.style.width = "100%"; //Estendere la tabella occupando tutta la larghezza
for (i = 0; i < 11; i++) {
row.insertCell(-1); //Creo 11 celle
}
for (i = 0; i < 11; i++) {
row.cells[i].innerHTML = "aa"; //Riempo le 11 celle con "aa"
}
Lascia un commento
Copyright © 2005 - 2010 :: ianaz - created by Silvio Rainoldi