Return to Snippet

Revision: 21928
at December 24, 2009 04:27 by daipratt


Initial Code
$("ul > li").click(function () {
    var index = $(this).prevAll().length;
});

Initial URL

                                

Initial Description

                                

Initial Title
Determine the index of an element, properly.

Initial Tags
jquery

Initial Language
jQuery