I have a scenario in which i click an element say `#stationLink`. When I click it again I want to know if the element was already clicked. I had tried

```
var a=false;
$("#stationLink").click(function(){
   $(this).click(function(){
     a = true
   });
   console.log(a);
});

```

I am getting `false` two times then only `true`.. I think i am missing something. Or is there any other way to do it?