How do I know the how manieth an element is? (using Javascript or jQuery) Suppose I have one UL with multiple LI within, how do I know wheter the LI clicked is the 4th or the 6th?
$('li').click(function(){
nth = $(this).nth();
alert(nth);
});