title: JavaScript + Adding items into dropdown
body: <p>I have two dropdowns in my JSP page</p>
  
  <pre><code>1. lstA
       test1
       test2
       test3
       test4
  
  2. lstB
  </code></pre>
  
  <p>Now on selection of lstA, I want to populate all the items of lstA into lstB except the select one, also the content of lstA should remain the same.</p>
  
  <p>How can I achieve this?</p>
  
  <p>I tried to do it, but from lstA some random items get removed, which is quite wired.</p>