jquery return element name on click code example Example: using this to get name of the clicked element var clickedBtnID = $(this).attr('id');