I have got:
$('.class1').click(function(){ //do
things on $(this) element })
and
$('.class2').click(function(){
//do things on $(this) element
})
things to do in each of that is the same, but when I did:
$('.class2').click(function(){
$('.class1').click();
})
… it was disaster, that actived each element with class1.
Is there any similar solution to above one?
$(".class1,.class2").click(function(){ });