Supprimer les lignes d'un tableau
Bonjour,
Je vois beaucoup de sujet pour ajouter des lignes dans un tableau...
Mais comment faire pour en supprimer?
Merci d'avance.
PS: petite contrainte, mon tableau a été construit en ajoutant des lignes avec le dode suivant
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
var newRow = top.principale.edition.document.getElementById('tab_catalogue_article').insertRow(-1);
var newCell = newRow.insertCell(0);
newCell.innerHTML = catalogue_nom;
newCell = newRow.insertCell(1);
newCell.align = 'center';
button1 = document.createElement('input');
button1.type = 'button';
button1.id = 'Suppr'+catalogue_value;
button1.name = 'Suppr'+catalogue_value;
button1.value = 'Suppr.';
button1.onclick = function(){m_desaffect_cat_article(catalogue_value)}
newCell.appendChild(button1); |