title: Multiply an element by a number and insert using jQuery
body: <p>I'm wondering if you can multiply an element using jQuery a number of times and insert it using .html()?</p>
  
  <p>I am building my own slider which might help put things in context...</p>
  
  <p>I am getting a number of times an element is used, which is stored in a <code>var</code> called <code>eachSlideCount</code>. So for example, this might output 10.</p>
  
  <p>Then what I want to do is create a <code>&lt;span&gt;&lt;/span&gt;</code> for each of these (so 10 spans) and insert this into a div to generate a pager.</p>
  
  <p><code>$this.next('.project-slider-count').html('&lt;span&gt;&lt;/span&gt;')</code></p>
  
  <p>Is there anyway to muliply this span by the <code>eachSlideCount</code> number and then add to the <code>.project-slider-count</code> element?</p>
  
  <p>I got this far... but clearly missing something...</p>
  
  <pre><code>var eachSlideCount = $this.find('.other-slides').length;
  var eachSlideTotal = ($this.next('.project-slider-count').html('&lt;span&gt;&lt;/span&gt;')) * eachSlideCount;
  $('.project-slider-count').html(eachSlideTotal);
  </code></pre>
  
  <p>Thanks in advance</p>