Hide element Count down timer Finish
-
Hello, can you help me configure the countdown timer finish to hide css element.
I found this code but it is not working.
<script>jQuery( document ).ready( function ( $ ) { $(document).on( ‘countdown_expire’, function() { $( ‘#expire-download’ ).hide(); } ); } );</script>
Thank you
Hello,
Try to use the following JS code to achieve this. Let me know if it works for you.
jQuery('.wd-timer').on('finish.countdown', function(event) { jQuery(event.currentTarget).hide(); })
Kind Regards
End where to put the id CSS to hide in the code?
Sorry, what CSS id do you mean? Could you please send us some screenshot or example?
Sorry, what CSS id do you mean? Could you please send us some screenshot or example?
When the countdown timer is finish right, i want the timer to dissapear an also the section elementor with image also dissapear. The section with specific class id to dissapear when finish countdown timer
You can put your custom JS that hides the section you need after this code jQuery(event.currentTarget).hide();
.
Look screenshot please what i need
Attachments:
You must be
logged in to view attached files.
Example: jQuery( document ).ready( function ( $ ) {
$(document).on( ‘countdown_expire’, function() {
$( ‘#ID_OF_THE_SECTION_I_WANT_TO_HIDE’ ).hide();
} );
} );
Try to use the following code
jQuery('.wd-timer').on('finish.countdown', function(event) {
jQuery(event.currentTarget).hide();
jQuery( '#ID_OF_THE_SECTION_I_WANT_TO_HIDE' ).hide();
})
-
This reply was modified 2 years, 5 months ago by
Artem Temos.
You are welcome. Feel free to contact us if you have any further questions.
The topic ‘Hide element Count down timer Finish’ is closed to new replies.