How to execute the same function for two classes?
I have it:
$('.buythis').click(function(){ blabla }
And I want to use the same line for another class, for example:
$('.anotherclass').click(function(){ blabla }
Now ... how can I use the same click function without reuse? I want something like:
($('.buythis'),$('.anotherclass')).click(function(){ blabla }
source share