I have a list that I want to attach a click onto for each li although i'm failing to get this working, example below. please help!? Thanks,
<ul>
<li>a</li>
<li>b</li>
<li>c</li>
<li>d</li>
</ul>
$('li').each(function () {
$(this).click(function (e) {
// access the letter - not sure how to do this (?)
});
});