This is the HTML code :
<div class="item">item 01</div>
<div class="item">item 02</div>
<div class="item">item 03</div>
....
<div class="list">
<ul>
<li>store 1</li>
<li>store 2</li>
<li>store 3</li>
</ul>
</div>
Now how it works :
when I Hover to "item 0X" the "List" should diplaying next to button "item 0X" and this Works fine.
the problem is how to make the list stay visible when I come back from the list to the button again.
I try to use this code but it doesn't works
$(document).on({
mouseenter: function () {
var div = $(this);
if( $('.list').css('display') == "none" )
{
actionHover(div);
}
},
mouseleave: function () {
setTimeout( function(){
if( $(".list").is(':hover') )
{
}
else if( $(".item").is(':hover') )
{
}
else
{
$('.list').hide();
}
}, 100)
}
},".list, .item");
And when the mouse get out from list it makes an error:
Error: Syntax error, unrecognized expression: unsupported pseudo: hover