I'd like to execute some javascript if button 1 is pressed OR button 2 is pressed.
I'm using the notation pasted below, (The code below does not work but I've supplied it to illustrate what I am trying to do). I know I can wrap up the code to execute into another function, and then write two blocks of code (1 for each button) but I'd just like to learn if there's a way to do a conditional OR selector in jQuery using the type of sytnax below. Thanks!
$(".btn1.btn2").click(function(){ //execute code }