Getting the offsetWidth (or equivalent) of an LI element
<p>So I'm trying to get the width of the element using jQuery.</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>alert($("#theList li:eq(0)").offsetWidth);</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;

&lt;ol id="theList"&gt;
  &lt;li&gt;The quick brown fox
&lt;/ol&gt;</code></pre>
</div>
</div>
</p>