comment faire un colspan en javascript
Bonsoir tt le monde
quelqu'un peut il me dire d'ou vient mon erreur dans ce bout de code, car je voudrait faire un colspan uniquement sur la 1ere ligne mais rien ne se passe
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
function total() {
var html = "<div><input type='text' name='txt'/></div>"
+ "<div></div>"
+ "<div><table>";
function matrice(nom, puce) {
html += "<tbody tt='" + nom + "'>";
puce.forEach(function(row) {
html += "<tr>";
row.forEach(function(cell) {
if ( html += "<tr>".rowIndex==0)
{
html += "<td colspan='4'";
}
else
{ html += "<td";} |
merci d'avance pour ceux et celles qui pourraient m'aider