Can you prevent a div from being dynamically created?
I have a chrome extension which triggers an event when one hovers over a
div element.
Now, there is a collision problem since the same div element is being used
to trigger the creation and display of a div which interferes with my
event that creates and displays a div too.
The new event appears to be triggered by a hover (I do not have access to
the code) to display the div. That div closes when the mouse leaves.
This code closes/hides the div but does not hide the div fast enough so it
is clunky to say the least:
$(this).mousemove(function(e) {
$(".badpopup").hide();
});
I only have the class available to work with.
So, is there any way to prevent any divs with the class .badpopup being
created or hidden in a more efficient and less clunky way?
No comments:
Post a Comment