Simpan ID dari elemen jQuery

$(". only_this_class"). click(function() { var clickedId= $(this). attr("id"); alert(clickedId); });
Average Anaconda