Can't change bootstrap Tooltip title

后端 未结 7 1211
傲寒
傲寒 2021-01-12 09:28

I\'ve already looked over several posts on stack overflow asking virtually the exact same question yet none of what I found on those questions has helped. I\'m very new to

7条回答
  •  耶瑟儿~
    2021-01-12 09:45

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

    Above code might help you.

    $.tooltip(string) calls any function within the Tooltip class. And if you look at Tooltip.fixTitle, it fetches the data-original-title attribute and replaces the title value with it.

    You can use the element id or class to make it more specific.

    • Help :)

提交回复
热议问题