I add some elements dynamically and assign it the hover property in delegated event handlers, for which I used the code below, and it did not work.
$(document).on("hover", ".sec_close_fast", function() { $(this).parent('div').parent('div').css("border", "3px solid #000000"); });
Then I used mouseover and it worked:
$(document).on("mouseover", ".sec_close_fast", function() { $(this).parent('div').parent('div').css("border", "3px solid #000000"); });
I would like to know why hover does not work, but mouseover does.
Yo yo source share