title: List option in the select tag from json file
body: <p>What I want to do is:
  As you can see from the ajaxTest.html, there is a <code>&lt;select id="sel1"&gt;</code> tag. I want the option value becomes <code>Test1</code> <code>Test2</code> <code>Test3</code>. which can be retrieved from the json file..how can I do that?
  ajaxTest.html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;script src="js/jquery-1.7.1.min.js"&gt;&lt;/script&gt;
      &lt;script src="js/jquery-ui.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;p&gt;Username:&lt;/p&gt;
      &lt;div id="uname"&gt;&lt;/div&gt;
      &lt;p&gt;Password:&lt;/p&gt;
      &lt;div id="pword"&gt;&lt;/div&gt;
      &lt;p&gt;Account Information&lt;/p&gt;
      &lt;div id="accnum1"&gt;&lt;/div&gt;
      &lt;div id="regdate1"&gt;&lt;/div&gt;
      &lt;div id="lastUpd1"&gt;&lt;/div&gt;
      &lt;p&gt;Select acc type:&lt;/p&gt;&lt;select id="sel1"&gt;&lt;/select&gt;
      &lt;script&gt;
      $.ajax({
          type:"GET",
          datatype:"json",
          async:true,
          url:'ref/list.json',
          success:function(data){
          alert("Welcome "+data.password+data.loginid);
          console.log(data.password);
          $('#uname').html(data.loginid);
          $('#pword').html(data.password);
          }
      });
  
      $.ajax({
          type:"GET",
          datatype:"json",
          async:true,
          url:'ref/accinfo.json',
          success:function(data){
          console.log(data.accnum);
          $('#accnum1').html(data.accnum);
          $('#regdate1').html(data.regdate);
          $('#lastUpd1').html(data.lastUpd);
          }
      });
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>list.json</p>
  
  <pre><code>{
      "loginid":"nurwafiqa",
      "password":"welcome123",
      "acclist":[
          {
              "acctype":"Test1",
              "name":"Wafiqa"
          },
          {
              "acctype":"Test2",
              "name":"Wafiqa"
          },
          {
              "acctype":"Test3",
              "name":"Wafiqa"
          }
      ]
  }
  </code></pre>