Reputation: 71
I am running my App on Internet Explorer. There seems to be some issue with JQuery method:
$('.tooltip-demo').tooltip({
selector: "a[rel=tooltip]"
})
for which, i get the following error on the javascript console:
Object doesn't support property or method tooltip
What can be the cause of this error? please help.
Upvotes: 0
Views: 5265
Reputation: 168685
It looks like you're using a tool tip plugin for jQuery, but it hasn't been loaded when you make the call.
If this code is being run when the page loads, you should put it into a $(document).ready()
function, to ensure that all the supporting libraries are loaded before it runs. This should solve the problem.
Upvotes: 0
Reputation: 38345
There's no standard tooltip()
function in jQuery, it's provided by a plugin. Ensure that you're a. loading the plugin and b. loading it after jQuery by placing the <script>
tag for the plugin after the one for jQuery.
Upvotes: 1