On 27/02/2007, at 9:10 PM, Yehuda Katz wrote: > So the basic idea is that you can create a table of contents based > on a series of links selected by a jQuery selector? > > Could be useful... > > > -- Yehuda
You can create a table of contents based on the elements you collect in a jQuery object. For example, $("h2").contentMenu(); will create a list of links that will take you to each of the h2 heading in the page. The text in the link is whatever text was in the h2 tags but with "skip to" added before it. The menu gets inserted before the first of those h2 elements. Thanks for the reply Yehuda. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/