Created
June 28, 2016 07:34
-
-
Save itsakt/b1db3077ee4e2a3b24e4cd4984e6382a to your computer and use it in GitHub Desktop.
Automatically hide bootstrap tooltips after 2s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on('shown.bs.tooltip', function (e) { | |
setTimeout(function () { | |
$(e.target).tooltip('hide'); | |
}, 2000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment