title: JQuery - How to clone or repeat image based on user entered input
body: <p>In plain javascript I can get an image to repeat based on user input. Pop is a variable holding the image, and totalTreats is a variable holding a user entered number:</p>
  
  <pre><code>document.getElementById('treats').innerHTML = pop.repeat(totalTreats);
  </code></pre>
  
  <p>I need to use jQuery, and can't get it to work using:</p>
  
  <pre><code>$('#treats').append($pop).clone($totalTreats);
  </code></pre>