title: Display JSON Objects as options in dropdown
body: <p>I have a simple HTML page in which I would like to read objects from a JSON file and show them as options in a dropdown using JavaScript. HTML and JSON are as below : </p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;html&gt;
    &lt;body&gt;
      &lt;select id="myid"&gt;MyList&lt;/select&gt;
      &lt;script src="myscript.js"&gt;&lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>JSON</strong></p>
  
  <pre><code>[{"Mode":"CARD"},
  {"Mode":"CASH"},
  {"Mode":"CHEQUE"}];
  </code></pre>
  
  <p>Any help w.r.t. the JavaScript is much appreciated!</p>