title: Dynamically Generating Divs with jQuery based on variable number
body: <p>Alright I'm a little lost.</p>
  
  <p>I've a page that pulls a value out of a database which is then being loaded into a variable, ticketNum. Basically I just need to generate the same div/content every time based on this number. I'm at a loss as it how to do it.</p>
  
  <p>If the ticketNum is 10, I need 10 divs, if it's 3, I need 3 and so on. </p>
  
  <pre><code>$(document).ready(function(){
   var ticketNum = 10;
  
   if (ticketNum &gt; 0) {
  
     } else {
  
     }
  
  });
  </code></pre>