TypeError: $(…).tooltip is not a function

后端 未结 4 1035
日久生厌
日久生厌 2020-12-06 11:51

I have gridview that is populated by jquery. Below is part of my code thats giving the above error:

var codes = $(this).find(\"Code\").text();

 $(\"td\", ro         


        
4条回答
  •  误落风尘
    2020-12-06 12:04

    tooltip() is not a function!!!

    I solved the problem by using below steps in angular 4.

    install jquery using, npm install jquery command.

    add the following code in the path src/typings.d.ts file.

    declare var jquery:any;
    
    interface jquery
    {
    tooltip(options?:any):any;
    }
    

    It solved the tooltip() issue.

提交回复
热议问题