Access div height in javascript
4 answers
:
document.getElementsById('myElementId').offsetHeight; // Without jQuery
$('#myElementId').outerHeight(); // With jQuery
1: externalHeight (true) , http://api.jquery.com/outerHeight/
Note 2: innerHeight () returns the current calculated height for the first element in the set of matched elements, including the indent, but not the border.
Note 3: $ ('div'). height () or $ ('div'). css ("height") returns only the css value.
0