Sum column where there's a discount inside
Sum column where there's a discount inside
![itajackass](https://secure.gravatar.com/avatar/8734d72a9b7f5f8631f74ac3731cbdee/?default=https%3A%2F%2Fvanillicon.com%2F8734d72a9b7f5f8631f74ac3731cbdee_200.png&rating=g&size=120)
I'd like to sum column to get total in footer, but in my case i've to show original price and discount price inside same cell:
<td data-price="100"><p style="text-decoration:line-through;color:red;"><small>150</small></p>100</td>
How can get it working only for price discount?
This discussion has been closed.
Replies
Hi @itajackass ,
Here's one way of doing it, splitting on the '>', there may be a more elegant way with jQuery but this works![:) :)](https://datatables.net/forums/resources/emoji/smile.png)
Cheers,
Colin
HI thanks for the reply... is there a more elegant system like get value directly from, in my example, data-price of td cell instead content of cell?