This code causes a pop-up window several times, although it should only be one, help me figure out, please.

$(".node").mouseenter (function() { $(".node").mouseup (function() { var target = "index"; alert('Скинул'); }); }); 

    1 answer 1

    Each time you hover over a .node, all .node is hung with another mouseup handler. Take out the function from the mouseenter.