1
Hello, I have a function. Where I would like that in the second instance (mouseleave) a delay occurs so that what is within the function occurs, I have already tried to set within the second function a setTimeout, I have tried to reference inside the . Hover, ". Hover(Function(){}, setTimeout(Function(){});), but still did not achieve an effective result. Function below:
    $("#lista-interface").on("mouseover", ".tarefas", function(){
        $(this).hover(function(){
            let divO = document.createElement("div");
            $(divO).attr({"class":("button" + " left"),});
            let divT = document.createElement("div");
            $(divT).attr({"class":("button" + " rigth"),});
            let divTR = document.createElement("div");
            $(divTR).attr({"class":("button" + " delete"),});
            $(this).append(divO);
            $(this).append(divT);
            $(this).append(divTR);
        }, function(){
            $("div").remove(".button, .left");
            $("div").remove(".button, .rigth");
            $("div").remove(".button, .delete");
            set
        });
    });
any idea how that could be an effect, or if there was some other way that I could achieve the same effect.
Because it does not use
$("#lista-interface .tarefas").hoverdirect without having to use amouseoverbefore?– Sam
Because I was having conflicts with that function because the class . tasks only appear after the page is loaded completely, so I needed to link the over to an item that is already initially on the page so that when the event occurs there is no conflict
– Luan Sabino