$('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>
$("#upload_link,#upload_link2,#upload_link3").upload(function(){ });
<div id="x1">A</div>
<div id="x1">B</div>
<div id="x2">C</div>
<script>
console.log($('[id="x1"]'));
</script>