Question

I'm trying to implement bootstrap tooltips on my site - you'd think it would be easy enough, but something is not working correctly - the bootstrap tooltip is not functioning.

I'm calling all the right scripts, stylesheets and javascript - I believe. I'm following the example here: http://jsfiddle.net/TSZSL/171/ and I believe this javascript could be throwing me?

$('.example').tooltip();

Here's the page I'm referring to. I just get a regular tooltip with no bootstrap functionality.

Was it helpful?

Solution

The problem is your reference to boostrap's tooltip library. You can't link to it like that; it's not a CDN...

<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-tooltip.js"></script>.

Use netdna's complete JS package or host the individual script yourself. See BootstrapCDN.

<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top