<a href="#" title="Twitter bootstrap" data-toggle="tooltip">bootstrap</a>
i want to show a tooltip without put the cursor.
is there any special attributes to do this?
<a href="#" title="Twitter bootstrap" data-toggle="tooltip">bootstrap</a>
i want to show a tooltip without put the cursor.
is there any special attributes to do this?
2
Answers
In general you can show the tooltip from javascript code using
$('#my-tooltip').tooltip('show')
.Your anchor tag would have to match the selector and you need to add
data-trigger="manual"
attributePer the Bootstrap docs, you can manually show and hide tooltips with the corresponding methods. Not sure what your js looks like, but something like this should work:
Of course, you need to change your html to include
id="tt-element"