title: How to get style of a div from javascript file
body: <p>Iam new to javascript, I have given style for a div by using javascript in one js file and i want to get that style from another js file. how it is possible??
  when i used 
      <code>var height= $("#searchComment").css("height");</code> 
  and on alerting the result it is get like 'undefined'.
  if this style is given in html it returns correctly. 
      test1.js and test2.js are included in index.html
  In test1.js ihave given styling to a div of id 'searchComment'</p>
  
  <pre><code>$( "#parentDiv").append("&lt;div class='ui-li-desc' id='searchComment' style='height:50px; width:40 px'&gt;&lt;/div&gt;");
  
  and in another js file test2.js i want to get the style of div of id 'searchComment'.
  how can i get this style?? please help me.
  Thank you
  </code></pre>