Just wondering how I can get this working 100% correctly. I think I\'m nearly there.
Basically, I have an image & when I mouseover, I want an overlay (which is a
The simplest solution is to add a wrapping element for both elements:
And place the mouseover/mouseout methods to that element instead:
mouseover
mouseout
$('.wrap').mouseover(function () { $('.company-image-overlay').show(); }).mouseout(function () { $('.company-image-overlay').hide(); });
JS Fiddle demo.