This is basically what i am trying to do:
$('body').on('click', '.class', function($(this));
I need a solution to make this work so that I can delegate the click event to all the elements with a particular class, but then pass the element that was clicked into a custom function that was written elsewhere. Since there are multiple instances of this element on the page, simply passing in the .class selector means they apply to all of those elements, but I need it to only act on the element that was clicked.