getting parent index with jquery
===

I know there is another question with an answer to my question, however one solution that was said to be newer does not work for me.

so I have something like: 

    <ul>
     <li><div class="thumb"></div></li>
     <li><div class="thumb"></div></li>
     <li><div class="thumb"></div></li>
    </ul>
    
    
    $("ul li div.thumb").live("click",function(){
    
    alert($(this).parent().index());
    
    });


I want to retrieve the index of the li, however the solution is not working for me.
