Consider a piece of code that looks like the following:
$(\'body\').on(\'click\', function(e){ });
I know there is a way to get the elemen
This can be done:
$('body').on('click', 'a', function (e) {//you can do $(document) instead $(body) e.preventDefault(); alert($(this).attr('id'));//<--this will find you the each id of `` });