get width if element using jquery
<p>Hello friends i want to get width of image which is wrapped in <code>&lt;li&gt;</code> following is my code</p>

<p><strong>SCRIPT</strong></p>

<pre><code>var imageWidth = $('.slider_cont ul li').children('img').width();
console.log(imageWidth);
</code></pre>

<p><strong>HTML</strong></p>

<pre><code>&lt;div class="slider_cont"&gt;
        &lt;ul&gt;
            &lt;li&gt;&lt;img src="images/1.jpg" alt=" " /&gt;&lt;/li&gt;
            &lt;li&gt;&lt;img src="images/2.jpg" alt=" " /&gt;&lt;/li&gt;
            &lt;li&gt;&lt;img src="images/3.jpg" alt=" " /&gt;&lt;/li&gt;
            &lt;li&gt;&lt;img src="images/4.jpg" alt=" " /&gt;&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/div&gt;
</code></pre>

<p>My code give exact value when i open it in firefox but is gives 0(ZERO) when i check it into chrome .... I dont know why.. please help me guys</p>
