Skip to content

Instantly share code, notes, and snippets.

@DevShahidul
Created June 10, 2018 12:27
Show Gist options
  • Select an option

  • Save DevShahidul/4ee05f2de5d20b1194ccd92846b85ffc to your computer and use it in GitHub Desktop.

Select an option

Save DevShahidul/4ee05f2de5d20b1194ccd92846b85ffc to your computer and use it in GitHub Desktop.
See example here >>> http://jsfiddle.net/GNrUM/ or find on Oliver Whyte project
var sec = 2
var timer = setInterval(function() {
$('#hideMsg span').text(sec--);
if (sec == -1) {
$('#hideMsg').fadeOut('fast');
clearInterval(timer);
}
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment