title: jQuery multiplying and adding all values together of fields with a certain class
body: <p>I have a few <code>&lt;input&gt;</code> elements that look like this:</p>
  
  <pre><code>&lt;input id="hosts" name="250" class="hostselector" type="number" min="0" max="999" value="0" /&gt;
  </code></pre>
  
  <p>I would like to multiply the value (that the user enters) with the value I'm storing in name.</p>
  
  <p>Now there's several elements of this on the page, all with the <code>class="hostselector"</code>. I'd like to get the sum of all the values, so in a sense:</p>
  
  <pre><code>(value * name) + (value * name) + .... every single element with that class.
  </code></pre>
  
  <p>How would I do that using jquery?</p>