Can somebody help me to use a timer exactly like stackoverflow’s answer accept time limit of 14 mins. How to create a timer in jquery and work with it?
EDIT:
I am doing an online examination system where the time limit is 60 mins i would like to show an alert of remaining minutes every ten mins.. How to do this in jquery? Or should i move it to server side.
They don’t do this in JavaScript (and for many things you shouldn’t do this in JavaScript, as it’s very easy to circumvent). Displaying the time is one thing, actually using it for the validity check is another.
On SO this is a server-side thing, when you click it tries to accept the answer, and the server gives a response saying that’s not a valid action yet, all you’re seeing is a display of the error message.
If you want to display the countdown, there are a few plugins out there that do this nicely already, or it’s not too hard to go the custom route, jQuery countdown is probably the most well-known.