I'm pretty new to jQuery, so please forgive... I have a page with a long list of hyperlinks in an unordered list:
<div class="longlist">
<ul>
<li><a href="/firstitem.aspx" title="First Item">First Item</a></li>
<li><a href="/seconditem.aspx" title="Second Item">Second Item</a></li>
...
<li><a href="/lastitem.aspx" title="Last Item">Last Item</a></li>
</ul>
</div>
At the top of this page is a list of hyperlinks for the letters of the alphabet
<div class="alphabet">
<a href="#" title="A">A</a>
<a href="#" title="B">B</a>
<a href="#" title="C">C</a>
...
<a href="#" title="Z">Z</a>
<a href="#" title="All">ALL</a>
</div>
When a user clicks any of the links in the alphabetic index, I need to show only items in the long list that start with the selected letter. I also need to 'gray out' the alphabetic links if there is no item matching that letter in the long list (that way the user wont bother clicking an index that does not exist).
How can I do this using jQuery?