$('body').on('click', '#element1, #element2, #element3', function () { console.log('Hello Developers'); }) //HTML <button id="element1">Element1</button> <button id="element2">Element2</button> <button id="element3">Element3</button>