How to use appendTo code when want to Copy same code to multiple divs?
<p>I have a code and when I am cloning that code then fewer values are found to be reset on its own.It worked with appendTo() function but I want to use appendTo for multiple divs<br>
For example: </p>

<pre><code>&lt;div id="allocationId"&gt;&lt;select&gt;&lt;option value=""&gt;Select&lt;/option&gt;&lt;option value="A" selected&gt;A&lt;/option&gt;&lt;/div&gt;
&lt;div id="modalDiv"&gt;&lt;/div&gt;
&lt;div id="tmpDiv"&gt;&lt;/div&gt;
</code></pre>

<p>I want to append code defined inside allocationId to modalDiv and tmpDiv<br>
Code that doesn't work:  </p>

<pre><code>$('#allocationId').find('select').clone().appendTo('#tmpDiv')
//Another Code that don't works  
$('#allocationId').find('select').appendTo('#tmpDiv #modalDiv')
//Code that works but its just for only one div  
$('#allocationId').find('select').appendTo('#tmpDiv ')
</code></pre>

<p>Please provide helpful suggestions..</p>
