- html jQuery, , SKS, html-, ID. . .
<thead> <tbody>
, jQuery, $("td") td , , .
$(this).find('td'), .children . , .
:
$("tbody").find("tr").each(function() {
var ratingTdText = $(this).find('td.Rating').text();
alert(ratingTdText);
});
html:
<table id="IndexTable">
<thead>
<tr>
<th>CoffeeID </th>
<th>Degree </th>
<th>Weight </th>
<th>Profile </th>
<th>UsageInfo </th>
<th>Comments </th>
<th>AmbientTemp </th>
<th>Rating </th>
<th>WeightDeducted </th>
<th>Selected </th>
<th>ProfileID </th>
<th>ProfileStart </th>
</tr>
</thead>
<tbody>
<tr>
<td>1 </td>
<td>1 </td>
<td>3 </td>
<td>9 </td>
<td>Filter Brew </td>
<td>Perfecto!! </td>
<td>55 </td>
<td class="Rating">4.25 </td>
<td>1 </td>
<td>4 </td>
<td>34 </td>
<td>1 </td>
</tr>
<tr>
<td>3 </td>
<td>15 </td>
<td>99 </td>
<td>87 </td>
<td>Espresso </td>
<td>WTF </td>
<td>99 </td>
<td class="Rating">4.5 </td>
<td>5 </td>
<td>3 </td>
<td>66 </td>
<td>4 </td>
</tr>
</tbody>
</table>
, !
, ! jsfiddle, : http://jsfiddle.net/fCpc6/