173
rated 0 times
[
176]
[
3]
/ answers: 1 / hits: 191498
/ 14 Years ago, fri, october 1, 2010, 12:00:00
I have used jQuery library to find out height of a div
.
Below is my div
element with attributes :
<DIV id=myDiv style=height:auto; width:78;overflow:hidden> Simple Test</DIV>
Below is my jQuery code to get height of <div>
var result = $(#myDiv).css('height');
alert(result);
After executing above statement I am getting result as auto. Actually this is I am not expecting, instead of that I want the result in px dimension.
More From » jquery