$('#id').click(function(e){
      alert(e.target.id);// The id of the clicked element});
Advertisements