title: Loop through multidimensional array from AJAX with jquery to populate select
body: <p>A multidimensional returned from php, here is my php array:</p>
  
  <pre><code>$brands = array("Bmw" =&gt; "200" ,"Mercedes" =&gt; "201", "Audi" =&gt; "202");
  </code></pre>
  
  <p>When the data is returnend how can I populate a select with this info?</p>
  
  <p>Lets assume that I need fill a select with Brands and their ID.</p>
  
  <pre><code>&lt;select&gt;
    &lt;option value="200"&gt;Bmw&lt;/option&gt;
    &lt;option value="201"&gt;Mercedes&lt;/option&gt;
    &lt;option value="202"&gt;Audi&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I dont know how to loop through the returned array to fill the select.</p>
  
  <p>Thanks a lot!!</p>