using this to get name of the clicked element
snippet in javascript

using this to get name of the clicked element

user9172

var clickedBtnID = $(this).attr('id');