title: Sum using jQuery each function without global variable
body: <p>I want to add some HTML elements that have the same class name.</p>
  
  <p>So, the code will be like this with jQuery.</p>
  
  <pre><code>$(".force").each(function (){
      a += parseInt( $(this).html());
  });
  $("#total_forces").html(a);
  </code></pre>
  
  <p>In this code, the variable has to be global. </p>
  
  <p>Is there any other elegant way to sum every <code>.force</code> value and get the sum out of the <code>each</code> function without global variable?</p>