[jQuery] Accessing elements returned by clone
How can I access the elements returned when using clone and
manipulate them? I would like to change the Ids of the clone elements
and siblings before appending it to another element.
Example
<div id="allcars">
<div id="carselection">
<select id="cars">
<option value ="volvo">Volvo</option>
<option value ="saab">Saab</option>
<option value ="opel">Opel</option>
<option value ="audi">Audi</option>
</select>
</div>
</div>
JS
$("#carselection").clone().appendTo("#allcars");
I am cloning #carselection
Thanks