I have two element sets: $(".contentBox") and $(".referencesImage"). How can I join the elements in this sets? I would like to join the sets, since I'm adding the exact same hover function on both element sets.
$(".contentBox").hover(function(event){ ..do something },function(event){ ..do something }); $(".referencesImage").hover(function(event){ ..do something },function(event){ ..do something });