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