I have several buttons on my site. When the user clicks the button, the modal opens. When the user clicks the button, a tooltip is displayed.
Uses this code:
<button type="button" rel="tooltip" title="Tooltip content" class="btn btn-sm btn-default" data-toggle="modal" data-target="#DeleteUserModal"> <span class="glyphicon glyphicon-remove"></span> </button> <div>modal</div> <script> $(document).ready(function(){ $('[rel="tooltip"]').tooltip(); }); </script>
This works, but the only problem is that the tooltip remains visible after clicking the button and the modal mode is displayed. Once the modal function is closed, the tooltip hides again.
How to prevent this? I want the tooltip to be displayed only when you hover over it, and not all the time when the visible kind of modality is visible.
twitter bootstrap
Mbrouwer88
source share