title: jQuery auto add href equal to the image adress
body: <p>I have a div with some images, which open on a lightbox (prettyphoto). Using one jquery code i made those images open automatically on the lightbox, giving the rel attribute to all the div elements. With css I selected the thumbnails width/height.</p>
  
  <p>Now i need a similar code, in order to automatically add a link to themselves. Is this possible?</p>
  
  <p>I mean, I would only need to upload the images through the backoffice, without needing to upload a thumbnail, then a full-size image and finally add the link.</p>
  
  <p>Here's the html:</p>
  
  <pre><code>&lt;div id="tab2" class="tab_content" style="text-align:center"&gt;
             &lt;img src="images/img1_thumb.jpg" alt="image1"/&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>jquery:</p>
  
  <pre><code>$(document).ready(function(){
  
              $('div.tab_content a').attr('rel', 'prettybox[grandsuite]')
  
              $("div.tab_content a").prettyPhoto({animation_speed:'normal',theme:'facebook',slideshow:false, autoplay_slideshow: false, social_tools:false, show_title:false, overlay_gallery:false});
  
          });
  </code></pre>
  
  <p>Thank you!</p>