i have table for quiz results, in the table there a cell for grade.
Example (cell grade is in a while loop and the numbers appears after checking the other cells with if):
<table border="1">
<tbody>
<tr>
<th> id </th>
<th> question </th>
<th> answer </th>
<th> correct answer </th>
<th> grade </th>
</tr>
<tr>
<td> 1 </td>
<td> question how bla bla bla</td>
<td> bla bla answer</td>
<td> correct answer</td>
<td> 5 (this cell has the grade of each question)</td>
</tr>
<tr>
<td> 2 </td>
<td> question2 how bla bla bla</td>
<td> bla bla answer2</td>
<td> correct answer2</td>
<td> 8 (this cell has the grade of each question)</td>
</tr>
etc
// in this cell i want to show me the average from td grade
<td colspan="4" align="center">average</td>
<td><input type="text" readonly="readonly" name="Avg" /></td>
</tbody>
</table>
thanks a lot!!
see this tut http://www.amitpatil.me/table-manipulation-with-jquery/ What You are probably looking for is mentioned in the 5th point on above page ie “5) Find all the values from td of particular column “