title: jQuery: selecting a parent attribute from a callback
body: <p>given this html code:</p>
  
  <pre><code>&lt;td&gt;&lt;img class='del' id='4' src='images/delete.gif'&gt;&lt;/td&gt;
  </code></pre>
  
  <p>I am in trouble understanding how to complete the following code:</p>
  
  <pre><code>$(document).ready(
      function(){ 
          setup();                            
      }
  );
  
  function setup(){
      $("#deleteForm").hide();
      $("img.del").bind('click', formDisplay);
  }   
  
  function formDisplay(){
     $("#deleteForm").show();
  }
  </code></pre>
  
  <p>Here I need to pass to the callback the value of the <code>id</code> attribute of the image element but I have some problem to understand how <code>this</code> or <code>$('this')</code> work in jQuery</p>
  
  <p>Still better, I would like to have html code this way:</p>
  
  <pre><code>&lt;tr id='4'&gt;
     &lt;td&gt;...&lt;/td&gt;&lt;td&gt;...&lt;/td&gt;&lt;td&gt;&lt;img class='del' src='images/delete.gif'&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>being able to get the value of each of the child of the <code>&lt;tr&gt;</code> element identified by its id from <em>within</em> the callback.</p>
  
  <p>Has someone some advices?</p>
  
  <p>Many thanks</p>