I have 4 div’s set in following manner:
<1st div> <2nd div>
<3rd div> <4th div>
Whenever, mouse hover over any of the div, div background should be changed.
How can I achieve this. Use of jQuery is also allowed.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is a solution using jQuery.
However, if I was doing this, I’d add a class and use CSS to change the actual background image.
You could do it with plain JavaScript too…
And you could even do it with CSS only…