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
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.
I think tooltip wasn't part of the file you are pulling in. Are you able to update your CDN reference to jQuery UI to:
http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js
I solved this problem by moving all my Javascript tags above:
< jdoc:include type="head" />
Hope it works for you too.
The tooltip
is the part of Bootstrap so including bootstrap should solve the problem.
Quick links to check with bootstrap, you may remove https:
from the beginning of the bootstrap links.
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>