Je suis au bord du gouffre....
Voilà 4h que je m'arrache les cheveux sur du code javascript, pour foncer à chaque fois dans les murs!
Je cherche "simplement" comment créer un tableau associatif dynamique, un peu con non?
Le problème est bien sûr plus large, en fait, j'ai un tableau html tout bête, comme ceci:
Code : Tout sélectionner
<table id="actionsEnCours">
<tr>
<th>Nom employé</th>
<th>Action</th>
<th>N° BF</th>
<th>Temps Total</th>
<th>Heure Début</th>
</tr>
<tr>
<td>yy</td>
<td>action1</td>
<td class="BF" id="0">1698</td>
<td class="temps1698">00:04:23</td>
<td id="tempsDebut0">12:17:14</td>
</tr>
<tr>
<td>xx</td>
<td>action1</td>
<td class="BF" id="1">1698</td>
<td class="temps1698">00:04:23</td>
<td id="tempsDebut1">16:10:39</td>
</tr>
</table>
Je cherche à mettre à jour le temps de fabrication via javascript, pour celà, la formule est simple, c'est:
Code : Tout sélectionner
(maintenant - tempsDébut) + tempsPasséEt ajotuer celle qui doivent vont ensemble...
Le tableau associatif est tout indiqué, seulement il fonctionne pas!
Merci d'avance