Using for..in to loop through an object
<p>I'm trying to use for..in loop to select the objects within a variable and it doesn't show up the necessary Li objects.</p>

<pre><code>var mUlLi = $(mUl).find('&gt;li');      //select all li's in main Ul   
var listLength = $(mUlLi).length;
if(listLength &gt;0 ){
    /*for(i=0;i &lt;listLength; i++) {
        console.log(mUlLi[i]);   // works fine show the li objects  
    }*/
    for(var obj in mUlLi) {
        console.log(obj);   // show's diff objects
    }
}
</code></pre>

<p>How can i fix this ?</p>
