I have a case where I have to generate a hover
of an element through a template that runs the website the same actions, but the issue is that its duplicates for the same reason what is dynamically called this in JavaScript
Here is the code of the temple to which I do the hover
is the one that has the class results-saveItem
<span class="Item-Selection">
<img src="/website-images/icons/btn{{ON}}-love.svg" id="_Botton-Love" class="results-saveItem {{saved}}" title="Add To Lovelist" data-groupnumber="{{groupnumber}}">
</span>
The jQuery code that makes hover
is as follows:
$(document).on("mousemove",".results-saveItem",function()
{
var love_green = "/website-images/icons/love-border-green.svg"; $(".results-saveItem").attr("src",love_green);
});