Let's say I have this markup:
<ul id="wizard">
    <li>Step 1</li>
    <li>Step 2</li>
</ul>
And I have this jQuery:
$("#wizard li").click(function () {
    // alert index of li relative to ul parent
});
How can I get the index of the child li relative to it's parent, when clicking that li?
For example, when you click "Step 1", an alert with "0" should pop up.
 
     
     
     
     
     
     
     
     
    