title: How to (move) or Add an jpg 'Image' from one div to another div using jquery?
body: <p>Hi all i am working on jquery here i have my  html  like this</p>
  
  <pre><code>            &lt;div class="grid row-fluid"&gt;
            &lt;div&gt;
              &lt;span class="span1"&gt;                
              &lt;input type="checkbox" class="regular-checkbox" id="Header" /&gt;
              &lt;label for="Header"&gt;&lt;/label&gt;                
              &lt;/span&gt; 
              &lt;span class="span1"&gt; &lt;img class="img-polaroid" src="http://placehold.it/140x140"&gt;&lt;/span&gt; 
             &lt;/div&gt;
  
  
               &lt;div&gt;
              &lt;span class="span1"&gt;                
              &lt;input type="checkbox" class="regular-checkbox" id="Header" /&gt;
              &lt;label for="Header"&gt;&lt;/label&gt;                
              &lt;/span&gt; 
              &lt;span class="span1"&gt; &lt;img class="img-polaroid" src="http://placehold.it/140x140"&gt;&lt;/span&gt; 
             &lt;/div&gt;
             &lt;/div&gt;
  
  
             &lt;div class="span7" style="border:1px black" id="separate"&gt;
  
                  &lt;ul class="thumbnails bootstrap-examples pre-scrollable"&gt;
                      &lt;li class="span2"&gt;
                        &lt;a href="#"&gt;
                          //image shold add here
                        &lt;/a&gt;
                        &lt;/li&gt;
                       &lt;/ul&gt;
           &lt;/div&gt;
  </code></pre>
  
  <p>in the above code i have a images and checkbox  ok now i have one empty div  now i want to add those image to the empye div once
  i select it the checked images only</p>
  
  <pre><code>           $(function () {
            $('input[type="checkbox"]').click(function () {
                AddToCart(this);
            });
        });
  
        function AddToCart(obj) {
            var $this = $(obj).closest('div');
            var img = $this.find('img');
            $('#separate').append(img);
        }
  </code></pre>
  
  <p>how to add image from one div to another div using jquery could u plz help me to do this thanks in advance</p>