jQuery click event but with multiple targets

Sure, just add the other selector separated by a comma like:

$("#button1, #button2").click(function() {
  
})
2 Likes