Hello
I have two divs. One is position:absolute (.buttonEffectWrapper), over the top of the other div (called .rightColumnButtonHighlighted).
I also have the following JS code:
$(function(){
$('.buttonEffectWrapper')
.mouseover(function(){
$('.rightColumnButtonHighlighted').stop().animate({opacity: 1}, {duration:300})
})
.mouseout(function(){
$('.rightColumnButtonHighlighted').stop().animate({opacity: 0}, {duration:300})
})
});
It works fine, except it applies to all the divs. I need it to only apply to the current div, and I am not sure how to do that.
DIVS:
<div class="buttonEffectWrapper"></div>
<div id="rightColumnButtonText" >CAR SERVICE</div>
<div id="car-service-highlighted" class="rightColumnButtonHighlighted"></div>
<div class="buttonEffectWrapper"></div>
<div id="rightColumnButtonText" >TRAILER HAULING</div>
<div id="trailer-hauling-highlighted" class="rightColumnButtonHighlighted"></div>
See http://www.raceramps.com/v2 for the effect.