récupérer la valeur de chaque td
Bonjour , je suis développe une application asp.net.Ici mon problème est coté javaScript (jQuery)
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
| <table id="thetable" cellspacing="0" >
<thead>
<tr>
<th>
DATEOP
</th>
<th>
Flight ID
</th>
<th>
STA
</th>
<th>
STD
</th>
<th>
STATUS
</th>
<th>
Station Depart
</th>
<th>
Station Arrivee
</th>
</tr>
</thead>
<% foreach (var item in Model) { %>
<tbody>
<tr>
<td>
<%: item.dateOp %>
</td>
<td>
<%: item.fltid %>
</td>
<td>
<%: item.sta %>
</td>
<td>
<%: item.std %>
</td>
<td>
<%: item.status %>
</td>
<td>
<%: item.stnDepart %>
</td>
<td>
<%: item.stnArrivee %>
</td>
</tr>
</tbody>
<% } %>
</table> |
Ce qui me bloque ici c'est la génération des lignes de façon automatique à l'aide de la boucle foreach d'ou j'arrive pas a piger comment récupérer la valeur de chaque td de chaque ligne.