How to fetch curecnt minutes,seconds value while click button
Closed this issue · 2 comments
Deleted user commented
I need current minutes,seconds value while click submit button
Lexxus commented
Hi,
You can get total seconds left to the timer's end by using this code:
$("#timer").data().sec;
For sure "#timer" should be selection of your timeTo element.
Deleted user commented
Thanks for reply. but still i'm not getting seconds. please see my code below. Once reach the sec 0 i'm getting alert msg with undefined.
*/
var timeee=10;
$('#clock-2').timeTo({
seconds: timeee,
theme: "white",
displayCaptions: false,
fontSize: 18,
captionSize: 14,
displayHours: false
}, function(){
alert('Countdown finished '+$("#clock-2").data().sec);
});