JSFiddle - React, Tailwind, and code Playground
HTML
<select class="theSelect">
<option value="1">First</option>
<option value="2">Second</option>
</select>
<a href="#">Build new select</a>
JavaScript
(function($) {
$('a').click(function() {
var $options = $('.theSelect option').clone();
$newSelect = $('<select></select>').append($options);
$('body').append($newSelect);
return false;
});
})(jQuery);