简体   繁体   中英

how to show the same tooltip when mouse hover and text box onfocus on the information icon

 <i title="" id="iKeyDeliverables" class="greenExl glyphicon glyphicon-info-sign" data-placement="top" data-toggle="tooltip">

当鼠标悬停在信息图标上以及焦点在文本框上时,如何启用相同的工具提示。

You should try adding data-trigger="hover focus"

Another, more customizable option would be to use data-trigger="manual" , and then show / hide the tool tip yourself:

$('#element').tooltip('show')

$('#element').tooltip('hide')

Using the onFocus and onBlur events, and of course the onMouseEnter and onMouseLeave events.

Source: http://getbootstrap.com/javascript/#tooltips

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM