title: Is it possible for Javascript to duplicate an element in the DOM?
body: <p>I have a pulldown menu created from PHP querying a database and then using <code>foreach</code> loop creating a list of options for that pull down menu.</p>
  
  <p>However in my form users may require to enter more of the same fields so I was wondering is it possible to make JavaScript copy an element like a pulldown with all its values and then place duplicate it in the same form?</p>
  
  <p>Why I am thinking like this, because I can't seem to find a way to pass a PHP array to JavaScript or at least I can't find a way to do it :(</p>