48
rated 0 times
[
49]
[
1]
/ answers: 1 / hits: 17154
/ 8 Years ago, thu, april 28, 2016, 12:00:00
So I'm trying to get the width of the element using jQuery.
alert($(#theList li:eq(0)).offsetWidth);
<script src=https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js></script>
<ol id=theList>
<li>The quick brown fox
</ol>
More From » jquery