Vishnu Bhadoriya Vishnu Bhadoriya - 1 year ago 234
jQuery Question

How to keep active bootstrap tooltip without hover or click

This is example which i am using for keep open tooltip without hover or click
but its not working any other suggestion

<a href="#" title="Download Excel" class="tool_tip">Download Excel</a>

my jquery for tooltip keep active

$('.tool_tip').tooltip({trigger: 'manual'}).tooltip('show');

Answer Source

Try adding

data-toggle="tooltip" data-placement="right"

to your html:

 <a href="#" data-toggle="tooltip" data-placement="right" title="Download Excel" class="tool_tip">Download Excel</a>

Or, you can do it with jQuery, for all the elements you want to, with a class selector:

  .attr('data-toggle', 'tooltip')
  .attr('data-placement', 'right')
    trigger: 'manual'

Where data-placement is the tooltip location (left, top, bottom or right).

Bootstrap tooltip

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download