using jquery to retreive the li parent title attribute
<p>Im trying to get the li's parent title using jquery.  Below is my jQuery and html.  If i hover Sub 1, 2, or 3 i want to alert the parent's title which is "About Us"</p>

<p>JQUERY</p>

<pre><code>$('a').hover(function(e) {
var whatami = $(this).parent('a').attr('title');

if(somethingnew == "About Us") {
alert(whatami);
    } 
else {
    //Do nothing
}
});
</code></pre>

<p>HTML</p>

<pre><code>&lt;ul&gt;
&lt;li&gt;&lt;a href="" title="Home"&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="" title="About Us"&gt;About Us&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="" title="Sub 1"&gt;Sub 1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="" title="Sub 2"&gt;Sub 2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="" title="Sub 3"&gt;Sub 3&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
</code></pre>
