I have a list of \[code\]DIV\[/code\]'s is a container \[code\]DIV\[/code\] similar to the below.\[code\] <div id="ChainLinkList"> <div class="chainSelect" id="L2176">jj</div> <div class="chainSelect" id="L2171">suby 3</div> <div class="chainSelect" id="L2170">suby 2</div> <div class="chainSelect" id="L2167">submenu</div> </div>\[/code\]I would like to get the order of a particular \[code\]DIV\[/code\] when clicked. I have tried the following\[code\] $(".chainSelect").live("click", function() { var index = $(this).parent().index(".chainSelect"); alert(index); .....\[/code\]also \[code\] $(".chainSelect").live("click", function() { var index = $('#ChainLinkList').parent().index(".chainSelect"); alert(index); .....\[/code\]But I just seem to get -1