JS obtenha valor de attratable att em clique

$("#table tbody").on("click",".delUser", function(){ //find button with class delUser and get value id
	console.log($(this).attr('id'))
});
iF n OnLy iF