I have a div :
css
div { width: 200px; height:auto }
markup
<div contenteditable="true"> Text is editable </div>
Now what should i do to access the height ( numeric value ) of the above div in javascript ? I tried
$('div').height() & $('div').css("height"); both returns auto.
You may want to try
.innerHeight()or.outerHeight(), depending on what you want.