If you want to refer to this element in another function or somewhere else in the script, just use a global variable (either a string for the last or an array for all "click-ignoring" element/s) and store it in there maybe like this:
var lastClickedElement = "";
$(".foowrap .foo").each(function(){
$(this).on("click", function(){
$(this).off("click");
lastClickedElement = $(this);
});
});
or, if you don't want to store the whole element, you can just store it's index. to do so, replace lastClickedElement = $(this);
with lastClickedElement = $(this).index();
.
You could then just refer to it as $(".foowrap .foo").index(lastClickedElement)
.