title: Very basic question about parent() and prev() in jQuery
body: <p>I am handling a hyperlink's click event with a JavaScript function. I want to retrieve data from the hyperlink.</p>
  
  <p>The page looks like this:</p>
  
  <pre><code>&lt;div class="div1"&gt;
     &lt;div title="Title 1" class="div2"&gt;
        &lt;p class="p1"&gt;&lt;a class="linkJs"&gt;The link in question&lt;/a&gt;&lt;/p&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="div1"&gt;
     &lt;div title="Title 2" class="div2"&gt;
        &lt;p class="p1"&gt;&lt;a class="linkJs"&gt;The link in question&lt;/a&gt;&lt;/p&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And the JavaScript something like this:</p>
  
  <pre><code>$(function() {
     $('a.linkJs').click(function(){
        value=$(this).parent().prev().text();
        alert(value);
     });
  });
  </code></pre>
  
  <p>What I want to have is the value of the TITLE in the div2. By clicking the first link I get : Title 1.  And by clicking on the 2nd: Title 2.</p>
  
  <p>This must be very very basic but I just can't find my answer anywhere.</p>
  
  <p>Thanks.</p>