<div style="width:100px; background:green">text</div> <script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script> <script type="text/javascript"> alert($("div").css('width')); </script>