Tu es un heureux veinard, j'ai une fonction toute faite je te la livre...
//------------------------------------------- function Modif_Valeur( id_, lig_, col_, val_){ var Obj = document.getElementById( id_); var Nb_Ligne = Obj.rows.length; if( lig_ <= Nb_Ligne){ var Nb_Col = Obj.rows[lig_].cells.length; if( col_ <= Nb_Col){ Obj.rows[lig_].cells[col_].innerHTML = val_; } } }
avec un appel du style Modif_Valeur('la_table', 5, 5, 'Toto')
tu n'as plus qu'a adapter... ;0)
|