http://jsfiddle.net/aBaw6/2/
This demo does not add class when you hover a list item.
What am I doing wrong here?
$(\"li\").hover(
function
Your JavaScript was badly formed:
$("li").hover(
function () {
$(this).addClass('hover);
},
function () {
$(this).removeClass("hover");
}
);
Should be:
$("li").hover(
function () {
$(this).addClass('hover');
},
function () {
$(this).removeClass('hover');
}
);
If you click on the JS Lint
button to the top of the screen it would've told you this (this isn't intended as a criticism, just a note for your future use of JS Fiddle).