jQuery make kellishaver stopwatch plugin countdown instead of up
<p>I need a stopwatch/timer to countdown. I'm trying to use <a href="http://www.kellishaver.com/projects/stopwatch/" rel="nofollow">Kellis Havers stopwatch jQuery plugin</a> and change it to countdown.</p>

<p>But can't figure out how to make it substract instead of add seconds, tried changing the 'second++;' to 'second--;' but got this result= 00:03:0-1. It says in the comments that parseInt() is not working, so i figure it something with the seconds is written in 01 02 03 04 etc. </p>

<p>But I am not yet good enough to understand how to get it to countdown.</p>

<pre><code>function do_time() {
            // parseInt() doesn't work here...
            hour = parseFloat(h.text());
            minute = parseFloat(m.text());
            second = parseFloat(s.text());

            second++;

            if(second &gt; 59) {
                second = 0;
                minute = minute + 1;
            }
            if(minute &gt; 59) {
                minute = 0;
                hour = hour + 1;
            }

            h.html("0".substring(hour &gt;= 10) + hour);
            m.html("0".substring(minute &gt;= 10) + minute);
            s.html("0".substring(second &gt;= 10) + second);
        }
    }
})(jQuery);
</code></pre>
