A Problem with jQuery selector inside loop

A Problem with jQuery selector inside loop

Hi all,

I think the best way to explain this issue is with a fiddle -


I'm trying to return the result of the calculation into a span tag that is inside a css class which will affect all instances of the loop.

I'm not sure if there is a way to put the result of the sum inside the span tag without creating a unique id for each case?

I'm not sure if I've explained this well, let me know if you have any questions / can't understand this!

Thanks