I'd like to add together all of the data-score values in the <ul> and store them in a jQuery variable
The amount of <li> items would be dynamic
<ul id="score_list">
<li data-score="1">FooBar</li>
<li data-score="0">FooBar</li>
<li data-score="0">FooBar</li>
<li data-score="3">FooBar</li>
<li data-score="1">FooBar</li>
</ul>
TIA
<li>and add the total together. Didn't see the point in showing code that did not work. Apologies if I ruined your afternoon