-
Notifications
You must be signed in to change notification settings - Fork 718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Destroy using if else statement #272
Comments
Ditto to this! It would be great to be able to destroy a timer. |
Hi, anyone know how to destroy countdown instance? |
|
This was referenced Aug 24, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
First of all, thank you for this useful library. It's definitely a big help.
Is there a way to destroy .countdown on ajaxStop? At the moment, the timer still running even though I put it on an if else statement.
I am currently using this on a product which has variations and running via ajax.
Product 1 = No timer
Product 2 = Has timer
Clicking Product 2 is OK as it has timer set.
The timer still running after clicking product 1. I would like hide the timer element / destroy it when product has no timer set.
I've tried to alert a message and it's working properly based on the condition set. It's just the timer is still running even though Product 1 has no timer set.
Here is the sample code:-
if (condition == true) {
$(target).countdown('2017/06/30 12:00 am', function(event) {
// render starts here.
});
}
Please help.....
The text was updated successfully, but these errors were encountered: