créer une entête d'un tableau en javascript.
bonjour,
j'ai crée un tableau dont le script de son entête est le suivant:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| <thead>
<tr>
<th rowspan="2" scope="col">Station</th>
<th rowspan="2" scope="col">Taux de fonctionnement</th>
<th colspan="6" scope="col">Nombre d'intervention,categorie:</th>
<th rowspan="2" scope="col">Nombre d'evennement</th>
<th colspan="3" scope="col">Condition d'environnement</th>
<th rowspan="2" scope="col">Historique</th>
</tr>
<tr>
<th scope="col">Provider</th>
<th scope="col">Communication</th>
<th scope="col">Alimentation</th>
<th scope="col">Digitaliseur</th>
<th scope="col">Capteur</th>
<th scope="col">condition d'environnement</th>
<th scope="col">Temperature</th>
<th scope="col">Hummidite</th>
<th scope="col">Pression d'aire</th>
</tr>
</thead> |
ce qu'il y a de spéciale dans cette entête est que, il y a des cellules composées deux 2 lignes, exemple:
la 3ième cellule contient deux lignes:
1- Nombre d'intervention,categorie:
2-contient 6 cellules :Provider, communication, alimentation, digitaliseur, capteur, condition d'environnement.
ce tableau s'actualise via ajax, c'est pour ça que je vous demande de m'aider à recréer cet entête en js,
merci d'avance.