For example say i have 2 links, A and B.
If a user hovers over A, the hover event of B will get triggered. Likewise with all other events like onlick, mouseover etc.
I’m not looking for adding the events manually like this:
$('a#A').click(function(){
$('a#B').trigger('click');
});
Thanks!
You can do this with multiple events like so:
This will trigger any of the specified events bound on
#B, like :FIDDLE
Now to make that really inefficient, lets get all the events bound to
#Band trigger them with#A:FIDDLE