I need such a scenario at where if anyone hover on a div, another div will be hovered. Just like:
HTML
<div class="box"></div>
<div class="link-box">
<a href="#">Touch the Grey Box and I get hovered!</a>
</div>
CSS:
.link-box a:hover {
color: red;
}
If anyone hover on the div.box
, div.link-box
will get hovered I mean get the red color. Is it possible? Please, don't tell it like this CSS way:
.box:hover .link-box a {
color: red;
}
My scenario is not like this. I've more complex scenario. So, it's only possible with jQuery. As I ain't good at jQuery, I can't write the script. That's why I need your help. What's the jQuery for it? May be, something like this?
$('.box').hover(function(){
$('.link-box').hover();
});
..............................................Update..................................
All the answer is related with CSS. Basically, div.link-box
is such a complex div at my webpage that if anyone hover on the div.link-box
many action happened, like pop-up box coming, multiple child elements of div.link-box
will change. All happened with jQuery + CSS. And I need all the hover action of div.link-box
when anyone hover on div.box
. I just make here div.link-box
as a link to make you understand my problem. But, basically it's not just css change. So, is it possible to bring all div.link-box
hover action by hover on another div/button/link just like div.box
by jQuery ?