I need to add a Hover event to all the elements on the page, i am doing that like this:
$("*").hover(
function () {
$(this).addClass('hoverElem'); ;
},
function () {
$(this).removeClass('hoverElem');
}
);
now i need to have it do the event on every element but not on the body element, any ideas?
Thank you.
Try selecting all elements under body: