I am trying to do something I think should be very simple: I have three links over which when the users hover, it should trigger changes in adjacent divs. What I have already done is:
$(document).ready(function () { $(#friendly .intro3).hover(function () { // intro3 here is a different div - from what little I read about event bubbling, I understand // that since the element I want to add a class to is in a different div, // this would fail to work $(.intro img).addClass('.classname'); }); }); So question is how do I get to add/remove classes to elements in divs other than the ones that actually trigger the hover? Thanks.