Javascript trigger function after 1 seccond.

JavaScript
voted: 0
vote
timer

This code triggers function click on button after one second.

$(".btn").on('click', function () {
    setTimeout(function () {
        $("#modal-product-gallery-1").removeClass('open');
    }, 1000);
});
working url: not entered
version: not entered
Leave a Comment:
Characters left:

Added: 21 October 2015 7:43 am

Are there any other solutions for this?