嗨,我在JSFiddle上有以下代码,但是工具提示没有被JQuery的工具提示内容选项中指定的文本所取代。我做错了什么,误解或完全错过了。谢谢。
Html
<a id="linkB" href="#" data-toggle="tooltip" title="To Be replaced">Link with replaced content</a>
JS
$('#linkB').tooltip({content:'LinkB Tooptip replaced via text in the content option of tooltip'});
我首先改变了标题,然后调用了tooltip,这对我来说很有效。如果你在这个解决方案中遇到问题,请告诉我。
$('#table_row1').attr('title', "Replaced via text in the content option of tooltip").tooltip();
我很困惑,你正在使用jquery-ui工具提示。
(您应该删除jqueryui
标签并添加bootstrap
,以供其他访问者使用)
但几分钟后,我意识到你使用了引导工具提示。
无论如何,解决方案是使用title
选项而不是content
,并在html标签中删除title
属性。
我添加了jsfield