trying to use jquery tooltip plugin, object has no method “tooltip”

前端 未结 3 1550
不知归路
不知归路 2020-12-20 20:28

I\'m using this tooltip: http://flowplayer.org/tools/demos/tooltip/index.html

I have the following lines in my html file:



        
3条回答
  •  我在风中等你
    2020-12-20 20:46

    Wrap $("#boo img[title]").tooltip(); in $(function(){ }); so you end up with:

    $(function(){
        $("#boo img[title]").tooltip();
    });
    

    Why:

    The $(function()... is a short cut to execute that code on the domReady event. So at that point all of the jquery files, and the page, will be loaded far enough for your javascript to work.

提交回复
热议问题