Not really requiring jQuery, just read up on JavaScript's setInterval, which is like setTimeout except you can cancel it
On Nov 12, 7:39 pm, Mark <mark...@gmail.com> wrote: > Hi, > > i tried this jquery countdown > plugin:http://davidwalsh.name/jquery-countdown-pluginand it works neat.. but > not for my interest. > What i try to do is have this: > > Have a simple countdown that counts down from 5 to 0 then changes the > text to "Uploading..." > The plugin mentioned can do that but i also want to be able to > "cancel" the countdown which it can't do. > Can anyone point me to a plugin that does have that functionality? or > how i make that in this plugin.. > > So what i want to be able to do: > > 5 > 4 > 3 > 2 > 1 > 0 > Uploading... > > Or when cancel is pressed > > 5 > 4 > 3 > 2 > CANCEL > > Just like that. > > I hope anyone can help me with this. > > Thanx, > Mark.