tags:

views:

31

answers:

2

If I have a table like:

+-----------+-----------+-----------+
| PRIORITY  | ITEM      | COMPLETED |
+-----------+-----------+-----------+
|    0      | foo       |    YES    |
+-----------+-----------+-----------+
|    1      | bar       |           |
+-----------+-----------+-----------+
|    2      | baz       |    YES    |
+-----------+-----------+-----------+

Can plain ol' HTML auto-generate a final summary line like:

+-----------+-----------+-----------+
|           |           |   2/3     |
+-----------+-----------+-----------+
+4  A: 

No. It can't. HTML can't iterate over the rows. With JavaScript it's no problem.

fn. http://stackoverflow.com/questions/376081/how-to-get-a-table-cell-value-using-jquery

The MYYN
+2  A: 

This is only possible using Javascript or server-side code.

SLaks