Is it possible to trigger a click event on hover?

javascript, jquery

Solution

Take a look at the trigger function:

$(someElement).trigger('click');

Problem

General javascript question here, which would also be good to know how(if possible) to do in jquery. Can you trigger a click event when hovering over an item? I know there will be people asking why, but please just humour me. Many thanks, C

Original source