title: Add Multiple Options in Dropdown list using javascript
body: <p>I'm Trying to add multiple values into dropdown list  dynamically using javascript.</p>
  
  <p>But only the last value is getting display.</p>
  
  <pre><code>    function disable_fn() {
          var qualification =document.getElementById('ddl_qualification').value;
          var nw_ddl = document.getElementById('stream');      
          if (qualification == 'MCA' || qualification == 'MBA')
              return nw_ddl.disabled = true;
          else if (qualification == "BE" || qualification == "ME") {
              var opt = document.createElement("option")
              nw_ddl.add(opt, nw_ddl[1]);
              opt.text = "C.S.E";
              opt.value = "C.S.E";
              nw_ddl.add(opt, nw_ddl[2]);
              opt.text = "MECH";
              opt.value = "MECH";
              nw_ddl.add(opt, nw_ddl[3]);
              opt.text = "E.E.E"
              opt.value = "E.E.E";
              nw_ddl.add(opt, nw_ddl[4]);
              opt.text = "E.C.E"
              opt.value = "E.C.E";
              nw_ddl.add(opt, nw_ddl[5]);
              opt.text = "AUTO"
              opt.value = "AUTO";
              nw_ddl.add(opt, nw_ddl[6]);
              opt.text = "AERO"
              opt.value = "AERO";
           }
  
  }
  </code></pre>
  
  <p>From the above code only "AERO" gets display other options does not.<br>
  how to add all the values.</p>
  
  <p>Thankyou.</p>