title: Jquery : get previous image with prev()
body: <p>here's my problem :</p>
  
  <pre><code>$("#gallery &gt; img").live('click',function() {
      $(this).prev().css("background" , "#f99"); // WORKS !
      var src = $(this).prev().src;               // DOESN'T WORK (src is undefined)
  });
  </code></pre>
  
  <p>I see in the google chrome debugger that prev() function returns a jQuery.fn.jQuery.init[1] object... It seems like it contains the HTMLImageElement i want with prev() at index 0, but working with it like an array doesn't work.</p>
  
  <p>I'm lost here I could use some help... thank you guys </p>