Im iterating through .each class="q-submit"
and doing a simple countup++. The result from each countup is written into: class="number"
<div class="section">
<div class="q-submit">
<div class="number"></div>
</div>
</div>
<div class="section">
<div class="q-result">
<div class="number"></div>
</div>
</div>
<div class="section">
<div class="q-submit">
<div class="number"></div>
</div>
</div>
<div class="section">
<div class="q-result">
<div class="number"></div>
</div>
</div>
Jquery:
submitContainer.each(function(){
currentCount++;
$(this).text(currentCount)
});
My issue: How do I also insert the countup number into the class="q-result"
number class?
Fiddle: http://jsfiddle.net/xLeh8y9u/
The above should then output:
q-submit - 1
q-result - 1
q-submit - 2
q-result - 2
Try this :
DEMO