$('.house, .senate').mouseover(function(event) {
$(event.target).addClass('highlight');
}).mouseout(function(event) {
$(event.target).removeClass('highlight');
});
I did not notice then in prior posts. Guess I completely missed it.
What is target, and how does it differ from "this"? It seems to work
as I was wanting- i.e. only the particular one you are on. No
children to inherit the method.
Am I understanding correctly?
No comments:
Post a Comment