When you hover over one
Try this: It will apply the same triggers for the receiver as the initiator receives for both mouseenter and mouseleave. Note that: is just a high-level variant of: so using that information you can be more precise when binding and triggering mouse events. As noted in the comment, you can also use: There are lots more to read here: http://api.jquery.com/hover/
$('.initiator').on('mouseenter mouseleave', function(e) {
$('.receiver').trigger(e.type);
})
.hover(over, out)
.on('mouseenter', over).on('mouseleave', out)
$('.initiator').hover(function(e) {
$('.receiver').trigger(e.type);
})