title: Update the database when timer counts down to zero
body: <p>I have a countdown timer which uses ajax calls to update itself. Something like</p>
  
  <pre><code>&lt;div class="timer5"&gt;--:--:--&lt;/div&gt;
  </code></pre>
  
  <p>I want to call a PHP function (only once) using jQuery which will update the database once the timer goes to 00:00:00.</p>
  
  <p>The thing is, the timer can be increased at any time (it's an auction) so I can't just run a script after X time that will update the DB. I have to call the script when the timer really reaches zero.</p>
  
  <p>How can this be done? Is there a some sort of an event in jQuery for that?</p>