Apparently you can't trigger the hover event programmatically, because hovering is not a trusted event (see also Trigger css hover with JS). Whan you can do is to add a class to add a class to the elements on mouseover, and remove the class on mouseout.

    .on('mouseover', function() {'hover', true); })
    .on('mouseout', function() {'hover', false); });

Related Query

More Query from same tag