Skip to main content Skip to navigation

Auto Anchors

A jQuery plugin that automatically creates an anchors navigation for certain elements (for example H2) inside a container element (div, body, etc). It automatically generates the anchors and can even make them numbered.

Usage

$("div.content").autoAnchors();

Or with options (defaults are 'h2', '', false):
$("div.content").autoAnchors({ anchor: 'h3', title: '<h3>Content</h3>', numbering: true });