title: Get the number of click counts and call a single ajax call using jquery
body: <p>I need to call ajax service when the user continuously clicks a link but Now I have written for a single click. Once clicked ajax called and works fine but continuously clicks means takes only the first click alone. I need how many times clicked totally at the end call ajax service. Any helps greatly appreciated.
  Here's my code:</p>
  
  <pre><code> &lt;a href="#" onclick="call()" data-tag="Prev" id="prev"&gt; Prev &lt;/a&gt;
  
  function call() {
  //Here ajax call function
  }
  </code></pre>
  
  <p>If I click N times means I need N as count and call once ajax function</p>
  
  <p>UPDATE1:</p>
  
  <p>I have tried a timeout for calling the ajax after a period of time while N number of clicks made, stored in count value.Now I needs to call the ajax again same problem happens while appending data error occurs.</p>
  
  <pre><code>$(function () {
      $("#prev").click(function () {
          ++count;
          setTimeout(Previousday(count), 1000); //Set time to wait execute the ajax
          count = 0;
      });
  });
  </code></pre>