Sum HTML 5 data attributes?

Sum HTML 5 data attributes?

NickWardNickWard 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

Answers

  • pikepike Posts: 3Questions: 1Answers: 0

    Hi Nick,

    This would be interesting for me, too.

    Did you get/find a solution?

    Cheers

  • allanallan Posts: 61,880Questions: 1Answers: 10,139 Site admin

    Certainly - you would use the column().nodes() method, loop over each node reading the attribute needed and sum them. The each() method could be used for the loop.

    Allan

This discussion has been closed.