title: Getting title attribute with jQuery
body: <p>assume that I have this list:</p>
  
  <pre><code>&lt;ul id="carousel"&gt; 
      &lt;li&gt;&lt;a title="hey"&gt;&lt;img src="image.png"/&gt;&lt;/a&gt;&lt;/li&gt;  
  &lt;/div&gt;
  </code></pre>
  
  <p>And now my jQuery script:</p>
  
  <pre><code>$(function() {  
      $("#carousel a").click(function(){
      var url = $(this).attr('title');
      alert(url);
  
      });
  }); 
  </code></pre>
  
  <p>This doesn't work, it works for other attributes such as "alt", "rel" etc. I will be greatful for any assistance.</p>