How to check if mouse is over an element?
I moving element to cursor position and I need to check if mouse is over an another element. How to do it?
<div class="dragged"></div> // I can move it
<div class="dropped"></div> // Need to drop here
$('.dragged').mousemove(function(e) {
...
if($(".dropped").is(":hover")) { // of course doesn't work
...
}
});
Thanks in advance.