Hello, is there any way to execute same code for different elements on the page?
$('.class1').click(function() {
some_function();
});
$('.class2').click(function() {
some_function();
});
instead to do something like:
$('.class1').$('.class2').click(function() {
some_function();
});
Thanks