We would like to know how to get height on a visible div.
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<style type='text/css'>
#thetext1 {<!--from ww w . ja v a 2 s. c o m-->
height: 360px
}
</style>
<script type='text/javascript'>
$(window).load(function(){
var newhgt = $('.rhs').height();
console.log(newhgt)
});
</script>
</head>
<body>
<div id="thetext1">
<div class="rhs">asdfasfsaf</div>
</body>
</html>
The code above is rendered as follows: