Reputation: 1499
I'm loading jquery.js
and foundation.min.js
on my page.
I read the documentation for tooltip. There, it is written that I need
for the tooltip, but I didn't find a download link for these files under foundation.zurb.com
. After some research, I found these files athttps://cdnjs.com/libraries/foundation
. I loaded the required libraries, but the tooltip still does not work for me.
How can I use a tooltip under foundation 6?
Upvotes: 0
Views: 282
Reputation: 13129
To initialize Foundation, you do not only need to import the scripts, but you also need to bootstrap your foundation elements by placing $(document).foundation();
in your JavaScript or whenever you have created your DOM.
You could also place it between <script>
tags in the bottom of your <body>
Upvotes: 2