title: Jquery - Getting height of the constructed div
body: <p>I am constructing a div and appending it to a main div. While doing this I need to get the height of the div as soon as I construct it and before appending it.</p>
  
  <p>For Example,</p>
  
  <pre><code>&lt;script&gt;
  $(function(){
  var text = $("#ObjText").html(); // This text is dynamic
  
  var dv = $("&lt;div id='childDiv'&gt;"+text+"&lt;/div&gt;");
  alert($(dv).height()); // This is getting '0' - Need to get the height of the div here.
  
  $("#page").append(dv);
  
  //After appending to page able to get the height of the child div
  alert($("#childDiv").height());
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>In my body Tag,</p>
  
  <pre><code>&lt;body&gt;
  &lt;div id="page"&gt;&lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Please help me out on this. Thanks in advance.</p>