/ Published in: jQuery
Expand |
Embed | Plain Text
$("ul > li").click(function () { var index = $(this).prevAll().length; });
You need to login to post a comment.
daipratt on 12/24/09
1 person have marked this snippet as a favorite
$("ul > li").click(function () { var index = $(this).prevAll().length; });
You need to login to post a comment.