title: add options to select using existing dropdown list
body: <p>I want to populate dropdown2 from existing dropdown. I am targeting this dropdowns using its classes.</p>
  
  <p>Also, want to add selected option from dropdown to dropdown2.</p>
  
  <pre><code>&lt;asp:DropDownList ID="DropDownList1" runat="server" class="dropdown" EnableViewState="true" AppendDataBoundItems="true" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AutoPostBack="True"&gt;&lt;/asp:DropDownList&gt;
  
                  &lt;select class="dropdown2"&gt;&lt;/select&gt;
  </code></pre>
  
  <p>Then, on change i have this : </p>
  
  <pre><code>$(".dropdown").change(function () {
      var selectedText = $(".dropdown option:selected").text();
      var selectedValue = $(".dropdown option:selected").attr('value')
  
      $('.dropdown option').each(function () {
  
          $(".dropdown2").append(new Option($(this).text(), $(this).attr('value')));
      });
  
      $(".dropdown2 option:contains(" + selectedText + ")").attr('selected', 'selected');
  });
  </code></pre>
  
  <p>How to populate select and add options using existing dropdownlist ??</p>