Click here to Skip to main content
15,880,796 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have two div tag.
HTML
<div id="a1">
</div>
<div id="a2">
</div>

I need when I hover div a1 then div a2 get hide. I don't know the CSS code.
Thanks in advance, your help is greatly appreciated.

Sazzad
Posted
Updated 10-Dec-13 5:47am
v2
Comments
Sergey Alexandrovich Kryukov 10-Dec-13 11:46am    
If you don't know CSS, learn it. What have you tried so far?
—SA
Sergey Alexandrovich Kryukov 11-Dec-13 10:45am    
Should I? Do I need? No, you need help. See the difference. And I am helping you, you are getting help but also manage to play offending card. Do you want to be treated like a child: "good job..."? Do you want to avoid learning or doing much job..?
—SA

1 solution

If you "don't know CSS, learn it. No one can learn it for you. Start here: http://www.w3.org/Style/CSS/[^].

Please see, for example: http://stackoverflow.com/questions/17393231/css-on-hover-show-and-hide-different-divs-at-the-same-time[^].

—SA
 
Share this answer
 
Comments
Maciej Los 10-Dec-13 13:15pm    
Short and to the point!
+5!
Sergey Alexandrovich Kryukov 10-Dec-13 14:32pm    
Thank you, Maciej.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900