title: jQuery auto refresh every minute based on current rest second time
body: <p>I have an jQuery Auto Refresh my data. I'm running it every 60 seconds/1 minute.</p>
  
  <pre><code>setInterval(function()
  {
      //if every 60 seconds based on current time (count the rest of second from current time) then run the AJAX.
      $.ajax(
      {
          url: "chkProfile.php",
          type: "POST",
          data:
          {
          },
          dataType: "JSON",
          success: function (jsonStr)
          {
          }
      })
  },60000);
  </code></pre>
  
  <p>And now  I want when anytime I refresh my page manually, Example I'm on 12:20:40 and as We know the rest of seconds is 20 then run the AJAX.</p>
  
  <p>The current If I'm on 12:20:40 then it will run the ajax on 12:21:40</p>
  
  <p>What I want is, If I'm on 12:20:40 then it should run the ajax on 12:21:00</p>