Basically what I want to achieve is when I mouseenter the "first a" link, the link on the second will turn red, when I mouseout it should return to blue, but I cant seem to target it using $('this')
.
$('body').on('mouseenter', '.shareButtonsWrapper div a:first-child', function(){
$(this).parent().$(".shareButtonsWrapper div a:last-child").css({"color":"red"});
}).on('mouseleave', '.shareButtonsWrapper div a:first-child', function(){
$(this).parent().$(".shareButtonsWrapper div a:last-child").css({"color":"blue"});
});