jgallen23 / toc

Table of Contents Plugin
http://projects.jga.me/toc/
MIT License
531 stars 111 forks source link

How to set options? #78

Open robfrancken opened 6 years ago

robfrancken commented 6 years ago

The download links located here http://projects.jga.me/toc/ return 404.

I managed to install via npm, but when I set the options, using $('#toc').toc(); I get Uncaught TypeError: $(...).toc is not a function.

The example configures the selectors with <div class="toc" data-toc="h1, h2, h3">, and doesn't use any jQuery at all. Is there another example somewhere I can look at to get this working?

cfab commented 3 years ago

Same question here !