I have an audio file and want that it's playing as soon as the cursor is hovering the div the audio file is placed in.
For any reason its only working with a click function but not with a hover/mouseenter function.
This is working:
$(".interview").on("click",function(){
$(this).find("#audio")[0].play();
});
This isn't working:
$(".interview").on("hover",function(){
$(this).find("#audio")[0].play();
});