title: Replace Select Box Options With JSON Result
body: <p>I have a select box, and when I click on a button, an ajax request is made, and it returns json object the object contains a new list of options for the select box. Is there any way that I can remove all the options from the select box and replace them with the new list?</p>
  
  <pre><code>&lt;select id="cat-0" &gt;
      &lt;option value="0"&gt;Select One...&lt;/option&gt;
      &lt;option value="1"&gt;Text 1&lt;/option&gt;
      &lt;option value="2"&gt;Text 2&lt;/option&gt;
      &lt;option value="3"&gt;Text 3&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>