I would like to know if you can actually concatenate class's/ID's in jQuery to DRY more effectively.
like this:
$(".div1").hover(function() {
$(".title").hide();
});
$(".div2").hover(function() {
$(".title").hide();
});
to this:
$(".div1 + .div2").hover(function() {
$(".title").hide();
});
Is there a way of doing that?
Thank you