0

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     |
+-----------+-----------+-----------+
Ross Rogers
  • 23,523
  • 27
  • 108
  • 164
  • 1
    The `M` of `HTML` stands for **Markup**, not for **Programming**. Use a real programming or scripting language to achieve that. – BalusC Dec 22 '09 at 02:12

2 Answers2

4

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

fn. How to get a table cell value using jQuery?

Community
  • 1
  • 1
miku
  • 181,842
  • 47
  • 306
  • 310
2

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

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964