Return to Snippet

Revision: 27101
at May 22, 2010 01:44 by certainlyakey


Initial Code
$('#publications').prev(':header').css('float','left');
	$('#publications').before('<select id="toc" class="jumpmenu"></select>');
	$("#publications li strong").each(function(i) {
        $(this).attr("id", i+1);
        $("#toc").append("<option value='#"+(i+1)+"'>"+$(this).text()+"</option>");
    });
    $(".jumpmenu").change(function() {
       		window.location.href = $(this).val();
    });

Initial URL


Initial Description
The name of the link should be in strong (or you may change this in the script)

Initial Title
Automatically create drop-down menu with links to the list items at the beginning of long lists

Initial Tags
jquery

Initial Language
jQuery