Tooltipster worked. Now : TypeError: $('.tooltip').tooltipster is not a function

Deadly 提交于 2019-12-13 07:46:59

问题


I'm rebuilding a simple html/css website meant to be available in 2 languages. French and english. Both need tooltipster. It is working perfectly on the french page. But not at all on the english page.

Error :

TypeError: $('.tooltip').tooltipster is not a function. (In '$('.tooltip').tooltipster( )', '$('.tooltip').tooltipster' is undefined)

The function is define this way in the html.

$(document).ready(function() {
    $('.tooltip').tooltipster();
});

Why is it not working when the english page is the exact copy of the french page ?

Visible at : www.krypton.fr/krypton3/index.html ( for the french page ) www.krypton.fr/krypton3/index-en.html ( for the english page )


回答1:


It is not an exact copy, you have two scripts included twice on english page, which probably causes the error:



来源:https://stackoverflow.com/questions/37890737/tooltipster-worked-now-typeerror-tooltip-tooltipster-is-not-a-function

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!