0
How to make Switchery show bootstrap tooltip on itself?
This example does not work:
<input data-toggle="tooltip" title="Hooray!" type="checkbox" class="js-switch" />
var clickButton = document.querySelector('.js-switch');
clickButton.addEventListener('click', function() {
$('[data-toggle="tooltip"]').tooltip('show');
});
How to do???
How to do Switchery show bootstrap tooltip in him self? This example doesn’t work:
<input data-toggle="tooltip" title="Hooray!" type="checkbox" class="js-switch" />
var clickButton = document.querySelector('.js-switch');
clickButton.addEventListener('click', function() {
$('[data-toggle="tooltip"]').tooltip('show');
});
How to do???
Welcome to stackoverflow, there is another version for posting questions in English https://stackoverflow.com/
– Marco
One thing that is unclear is whether you want the tooltip to appear in the event
click
or if with the patternhover
.– Marco