You can add an attribute that you could check:
$("#stationLink").click(function(){ $(this).attr("hasBeenClicked", "true"); });
I do not like to use the global var to keep whether this element has been pressed for the simple reason that if you need to track more than one element, then it can be a little dirty. I prefer the class or ass attribute, as you can see in the element whether it was pressed
source share