title: jquery attr('title') a tag
body: <p><code>enter code here</code>i use: jquery-1.6.2.min.js</p>
  
  <p>i want to get the content of an a tag -->> title &lt;&lt;-- attribute</p>
  
  <p>example html code:</p>
  
  <pre><code>    &lt;div id='menu1' class="menu"&gt;
        &lt;a class="dock" href='#' title='some text bla bla 001'&gt;&lt;img src='http://www.linktoimage.com/sample.jpg' /&gt;&lt;/a&gt;
     &lt;/div&gt;
  </code></pre>
  
  <p>inside document ready function i use this jquery code:</p>
  
  <pre><code>    $(function(){
      $('.menu a').click(function(){
           alert($(this).attr('title'));
          // $('.headline').empty();
          // $('.headline').append('&lt;p&gt;'+ $(this).attr('title') +'&lt;/p&gt;');
      });
  });
  </code></pre>
  
  <p>problem:</p>
  
  <p>alert only returns undefined</p>
  
  <p>can someone help? thnx</p>