Having a little trouble with .hover()
I'm grabbing some dribbble shots, which are pulled in on page load. And for some reason adding a class via hover doesn't want to work on them.
Although it works perfectly fine with a standard list.
JS:
$("#dribbble li").hover(
function () {
$(this).addClass("hover");
},
function () {
$(this).removeClass("hover");
});
HTML
<div id="dribbble">
<ul>
<li></li>
<li></li>
<li></li>
</ul>