Organizational Research By

Surprising Reserch Topic

css javascript how do you get the rendered height of an element


css javascript how do you get the rendered height of an element  using -'javascript,jquery,css,height'

How do you get the rendered height of an element?

Lets say you have a <div> element with some content inside. This content inside is going to stretch the height of the <div>. How do you get the "rendered" height when you haven't explicitly set the height. Obviously, I tried:  

var h = document.getElementById('someDiv').style.height;


Is there a trick for doing this? I am using jQuery if that helps.
    

asked Oct 13, 2015 by nikhilapatil
0 votes
3 views



Related Hot Questions

11 Answers

0 votes
NULL
answered Oct 13, 2015 by nimisha.jagtap
0 votes
NULL
answered Oct 13, 2015 by ashish singh
0 votes
NULL
answered Oct 13, 2015 by nikhilapatil
0 votes
NULL
answered Oct 13, 2015 by manju bhargava
0 votes
NULL
answered Oct 13, 2015 by tejas lakhani
0 votes
NULL
answered Oct 13, 2015 by rajeshujade
0 votes
NULL
answered Oct 13, 2015 by sachin valanju
0 votes
NULL
answered Oct 13, 2015 by amit.gupta
0 votes
NULL
answered Oct 13, 2015 by dahiyabecomp
0 votes
NULL
answered Oct 13, 2015 by param.oncemore
0 votes
NULL
answered Oct 13, 2015 by shegokar.anjeet

...