I have div in the manner as shown below which are generated by loop.
I want to show that quick
div
at hovering over the image
or hovering over the div
but when I hover it shows div all over the other divs. Any suggestion please.
<div class="box-product">
<div>
<div class="image"><a href="">test 1<img src="image.jpg" /></a>
</div>
<div class="quick" style="display: none;">Quick Look</div>
</div>
<div>
<div class="image"><a href="">test 2<img src="image.jpg" /></a>
</div>
<div class="quick" style="display: none;">Quick Look</div>
</div>
<div>
<div class="image"><a href="">test 3<img src="image.jpg" /></a>
</div>
<div class="quick" style="display: none;">Quick Look</div>
</div>
<div>
<div class="image"><a href="">test 4<img src="image.jpg" /></a>
</div>
<div class="quick" style="display: none;">Quick Look</div>
</div>
</div>
This is my jQuery
$(function () {
$(".box-product div").each(function () {
$(".image").mouseenter(function () {
$(".quick").show();
});
$(".image").mouseout(function () {
$(".quick").hide();
});
});
});
I have created a jsfidle which clearly defines what is my question.