How to overwrite twitter bootstrap tooltip?

后端 未结 6 2071
生来不讨喜
生来不讨喜 2021-01-04 05:02

I\'m using tooltips from Twitter Bootstrap package to show items information on the page. Sometimes information is changed, and needs to be updated in the tooltip. I tried s

6条回答
  •  鱼传尺愫
    2021-01-04 05:29

    This technique did not work for me so I found an answer, hidden in one of the comments of a similar question.

    the cleanest way to update the display text of the tooltip

    $(element).attr('title', 'NEW_TITLE').tooltip('fixTitle').tooltip('show');

    Thank you to lukmdo

提交回复
热议问题