Cheesetoast

Brain Food for Web Developers

JQuery Logo

July 3, 2010
by Graham
Comments Off on Automatically Generate a Table of Contents with JQuery

Automatically Generate a Table of Contents with JQuery

I’m going to walk through a little JQuery script that automatically generates a table of contents at the top of the page. This is useful when you have content arranged under several sub-headers (a typical Wikipedia page is a good example) and want to have quick links to each section. Continue reading