.tooltip() is not a function

后端 未结 3 1127
失恋的感觉
失恋的感觉 2020-12-18 17:44

I am trying to use the .tooltip() that I found from the following: Jquery-ui tooltip. What I have is a rails app that has some information in a table. In separate cells. Cur

3条回答
  •  余生分开走
    2020-12-18 18:31

    Try doing something like this. For tooltip to work, you will require title set for the control.

    HTML

    
    
    
    

    JavaScript

    $(document).ready(function(){
       $("#bookingTd").tooltip();
    });
    

    Also make sure you load jQuery first and then the tooltip plugin.

    Hope this helps you.

提交回复
热议问题