title: Fill dropdown list with json
body: <p>I have SQLite table with columns id and name. I return array of those rows like json from autocomplete.php page. How to fill select with options ( drop down list ) with this json using jquery and JavaScript ? I am new to JavaScript and JQuery, I googled but didn't find how. In ASP.NET this is easy but here I don't know. Would somebody help ?</p>
  
  <p>This is example of my JSON, can be much longer.</p>
  
  <pre><code>[
      {
          "id": "1",
          "name": "test"
      },
      {
          "id": "1",
          "name": "test"
      }
  ]
  </code></pre>