Sum HTML 5 data attributes?
Sum HTML 5 data attributes?
NickWard
Posts: 2Questions: 2Answers: 0
Hi
Is it possible to sum the HTML 5 data attribute values in a column?
The reason for trying to do this is the rows are populated with numbers formatted in the locale when the HTML table is generated in ASP .Net.
Thanks
Nick
This discussion has been closed.
Answers
Hi Nick,
This would be interesting for me, too.
Did you get/find a solution?
Cheers
Certainly - you would use the
column().nodes()
method, loop over each node reading the attribute needed and sum them. Theeach()
method could be used for the loop.Allan