<div style="border:1px solid black;
margin:20px;
padding:10px;
width:100px;
">
Something
</div>
<script>
$elem = $('div');
$elem = $elem.outerWidth(true)
+ $elem.innerWidth()
- $elem.outerWidth()
- $elem.width();
alert($elem);
</script>
What will be displayed in alert box?
Login in to like
Login in to comment