Ho trovato la seguente funzione che praticamente aggiunge una riga ad una tabella:
codice:
function addRow(id, valori){
val = valori.split(',');
var tbody = document.getElementById(id).getElementsByTagName("TBODY")[0];
var row = document.createElement("TR");
var td1 = document.createElement("TD");
td1.appendChild(document.createTextNode(val[0]));
row.appendChild(td1);
tbody.appendChild(row);
}
siccome non applica nessuno stile, vorrei sapere come si fa ad applicare uno stile del css. Il mio stile si chiama "list_item".
Cosi com'è viene applicato times new roman a 12px .. sgradevole da vedere...
grazie mille