sum all values for table column based on class

前端 未结 2 700
礼貌的吻别
礼貌的吻别 2020-11-29 06:01

I\'m trying to retrieve the sum of all values in a td based on a specific class. The code does not throw up any errors but my sum keeps resulting in \"0\".

Do the nu

2条回答
  •  失恋的感觉
    2020-11-29 06:37

    I have a JQuery plugin, Sumtr, that handles this pretty well if you want a summary row.

    Here is your example with the plugin.

提交回复
热议问题