i have two different divs (code was simplified, this is not the actual code.)
You can try this syntax to do so,
When working with Classes
$(".className1, .className2, .classNameN").on('click', function(){
Do_Some_Work();
});
When working with Id's
$("#ID1, #ID2, #IDN").on('click', function(){
Do_Some_Work();
});
When working with Combination of ID
and Class
z
w
x
y
$('#z.w , #z.y').on('click', function(){
Do_Some_Work();
//Pointer come here only when it click on `W` and `Y`
});