title: How do I copy the <options> from one select list, to another?
body: <p>I'm trying to copy the <code>&lt;options&gt;</code> HTML Codes from one select list to another. I have tested the script below, but it does not work. </p>
  
  <p>I have tested with an 'alert' function, but it seems to only display the values within the previous options. </p>
  
  <p>would anyone be able to recommend what I should use? Thank you!</p>
  
  <pre><code>$("select[name='NHIndexNo" + tablecounter + "_" + rowCount + "'] option").each(function(){
     $("select[name='NHIndexNo" + tablecounter + "_" + (rowCount+1) + "'] option").appendto($(this).val());
  });
  </code></pre>