Jquery last click
<p>How i can determine the last clicked id ?!
Because if i use :</p>

<pre><code> if(clicks &gt; 1){
     var lc = event.target.id;  // Last Clicked event

     }
</code></pre>

<p>It will return the current button clicked id
I have something like this :</p>

<pre><code>$('#menu).click(function(event) {

  clicks++;
   if(clicks &gt; 1){
     var lc = event.target.id;  // Last Clicked event

     }
   console.log(lc);
</code></pre>

<p>And i have 2 buttons 
Now if i click on first button console log will show undefinded but if i click on second button it will show his id.I want to prevent that</p>
