Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Doesn't My Foundation Tooltip Work?

I want to use a Foundation tooltip: http://foundation.zurb.com/docs/components/tooltips.html

According to the instructions: I put this code in body :

<script>
  document.write('<script src=/js/vendor/'
    + ('__proto__' in {} ? 'zepto' : 'jquery')
    + '.js><\/script>');
</script>

and use:

<script src="/js/foundation.min.js"></script>

and:

<script>
  $(function(){
    $(document).foundation();    
  })
</script>

and I use this code in body

<span data-tooltip class="has-tip" title="Tooltips are awesome, you should totally use them!">extended information</span>

But it does not work:

upload.tehran98.com/img1/6taveochivfnio6ch6h2.png

Now what do I do to have tooltip like this?

upload.tehran98.com/img1/zkmxqt8nqvkbnyn4bd.png

like image 958
naser Avatar asked Feb 17 '23 12:02

naser


1 Answers

I didn't use:

<script src="/js/custom.modernizr.js"></script>

and didn't download CSS: http://foundation.zurb.com/download.php

I use them and tooltip work now:

enter image description here

like image 57
naser Avatar answered Mar 03 '23 08:03

naser