$(document).on('click', '.SELECTOR1 OR #SELECTOR2', function(){ // some code });
What I want to achieve is to run some code by clicking on one of the elements.
The Sizzle selection engine used by jQuery follows the same rules as CSS. With this in mind, you can separate the selectors with,:
$(document).on('click', '.SELECTOR1, #SELECTOR2', function(){ // some code });
Just use a comma to do this:
JSFIDDLE .