I am creating Bootstrap tooltips dynamically on fields and I'd like to check to see if a given field has a tooltip so I can edit the message instead of creating a new tooltip.
I don't see anyway to do this in the Bootstrap documentation, but I imagine there a way to accomplish this. Anyone know of a way?
Using Bootstrap 3:
var field = $('.example');
if (field.data('bs.tooltip')) {
// tooltip is initialized
} else {
// tooltip is not initialized
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With