title: Copy url and paste it in src
body: <p>I'm trying to modify a gallery, so I wouldn't have to paste the link several times.</p>
  
  <p>Can anyone advice the best method to copy the link from <code>a href</code> to the image <code>src</code>??</p>
  
  <p>Here is my markup:</p>
  
  <pre><code>&lt;li&gt;
  &lt;a class="thumb resize2" id="img2" name="drop" href="http://farm3.static.flickr.com/2404/2538171134_2f77bc00d9.jpg" title="Title #1"&gt;
     &lt;img class="resize1" id="img2-2" src="" alt="Title #1" /&gt;
  &lt;/a&gt;
  &lt;div class="caption"&gt;
     Any html can be placed here ...
  &lt;/div&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>and is it posible to make a variable from the li <code>#img2</code> and <code>img2-2</code></p>
  
  <p>For example: I have 10 images places in <code>li</code> and the link to the image is placed only onces, so the script will run through all li's and copy and paste the links in particular <code>li</code>? Did I make myself clear what I want to achieve?</p>
  
  <p>I'm trying to achieve this using jQuery.</p>
  
  <p>Thanks guys,</p>