Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
CSS
<style>
#q{
height:200px;
}
</style>

<body>

<div id="q">

</div>
<body>
<script>

/* i have tried these codes but its not working
like */

var p=$("#q").height();//its giving 200px that is visible height
var p=$("#q").scrollheight();//not supported in w3c so i cant use it
</script>



NOte:here q is the id of div
Posted
Updated 23-Jun-13 23:53pm
v5
Comments
Adityaece29 24-Jun-13 5:12am    
Please solve my problem

you can use overflow:scroll to see the hidden content.

example:

#q{
height:200px;
overflow:scroll;
}


it will help you..
 
Share this answer
 
If you need to know what the height would have been without some of it being hidden (scrolled), refer to the scrollHeight property:

$('#q')[0].scrollHeight;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900