Having problems with a simple jquery mouseover function.
I have a number of dynamically generated icons which when I hover will show a hidden div, and when I mouesout will hide the div.
<div class='lister1'>
<img src='"+path+stat1+"' />
<img src='"+path+stat2+"' />
<img src='"+path+stat3+"' />
<img src='"+path+stat4+"' />
<img src='"+path+stat5+"' />
<img src='"+path+stat6+"' />
</div>
JQuery:
$('.hover_pop').hide();
$(document).on('hover','.lister1 img', function(){
$('.hover_pop').show(), function(){
$('.hover_pop').hide();
}
});
This will show the div but unfortunately will not hide it.
As of jQuery 1.8 using
hoverevent withonmethod is deprecated, you can code: