Reputation: 9668
Is it possible to keep Twitter Bootstrap tooltip open by default and instead hide it on an event? If so, please let me know how.
Upvotes: 0
Views: 5465
Reputation: 53
This may help somebody. In bootstrap 4 you can always show the tooltip with the following code:
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip('show')
})
</script>
Upvotes: 1
Reputation: 100
Similar work done on this js fiddle: http://jsfiddle.net/Tm8Lr/1/ would this be an option?
Will carry on working on
Consider something like:
<script type="text/javascript">
$(function () {
$(".show-tooltip").on("mouseover", function(){
$(".tooltip-examples a").tooltip('show');
});
$(".hide-tooltip").click(function(){
$(".tooltip-examples a").tooltip('hide');
});
});
</script>
Upvotes: 0