title: how to know if an element is already clicked jquery
body: <p>I have a scenario in which i click an element say <code>#stationLink</code>. When I click it again I want to know if the element was already clicked. I had tried</p>
  
  <pre><code>var a=false;
  $("#stationLink").click(function(){
     $(this).click(function(){
       a = true
     });
     console.log(a);
  });
  </code></pre>
  
  <p>I am getting <code>false</code> two times then only <code>true</code>.. I think i am missing something. Or is there any other way to do it?</p>