I have added click event listener on multiple elements in jQuery which works fine:
$('#element1, #element2, #element3, #element4').on('click', function(){
// do something with the clicked element
});
Now I would like to find out which element is being clicked. How can I do that? Thank you very much.