I am passing elements from one section to another, the big problem I have, is that when cloning it does not save the option
selected, simple example to understand me:
<div id="content">
<div class="copy">
<select>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
</div>
</div>
<button type="button" id="clone">Clonar</button>
<div id="container">
</div>
$('#clone').on('click', function() {
$('#content .copy').clone().appendTo('#container')
}
It clones it perfectly, but still does not keep the information that was selected. Someone knows what is going on or what other method they recommend me to use.