Jquery creating option elements in a for loop?
<p>I have my <code>select</code> dropdown initially being created using <code>php</code> like so:</p>

<pre><code>  &lt;select id="cupcake-amt" name="amt"&gt;
         &lt;?php for($i=0; $i&lt;50; $i++) : ?&gt;
          &lt;option value="&lt;?php echo $i; ?&gt;"&gt;&lt;?php echo $i; ?&gt;&lt;/option&gt;
          &lt;?php endfor; ?&gt;
  &lt;/select&gt;
</code></pre>

<p>How would I create a jquery function that rebuilds the options to a different amount. So instead of 50 options I would want it 12 later. What's the best approach?</p>
