🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

A super lightweight (~3kb unminified) jQuery plugin to automatically generate a nested table of contents based on Html heading tags (h1, h2, h3, etc).

Table-of-Contents TOC

Documentation

jQuery-TableOfContents

Build Status Coverage Status Dependency Status

A table of contents, usually headed simply "Contents" and abbreviated informally as TOC, is a list of the parts of a book or document organized in the order in which the parts appear. jQuery-TableOfContents is jquery plugin for table of content. I need an overview table about current page when I write long size document. This is a plugin that can help you.

Usage

Absolutely simple to use.

$("#id").tableofcontents({ id: "#target" }); 

With style of element.

$("#id").tableofcontents({ id: "#target", css: { "width": "100px" }); 

License

jQuery-TableOfContents is available under the terms of the MIT License.


You May Also Like