/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$("ul > li").click(function () { var index = $(this).prevAll().length; });