Skip to content Skip to sidebar Skip to footer

Can't Change Background-color Of Another Element On Hover

I've created a list with elements. I want the background color of #tags_image to change to yellow when you hover element 1, to blue when you hover element 2, etc. This is my HTML c

Solution 1:

You can use jQuery to manipulate this.

$("#tag1").hover(function(){
    $("#tags_image").css('background','yellow');
});

$("#tag2").hover(function(){
    $("#tags_image").css('background','blue');
});

CMIIW~

Post a Comment for "Can't Change Background-color Of Another Element On Hover"