title: Object doesn't support this property or method
body: <p>I am having an issue where IE is not working with the following code. The code basically hides a div if elements are empty, you will notice it works in all but IE.</p>
  
  <pre><code>//hide webapp item if empty
  if ($("#features").html().trim()) {} else {
      $("#f-h").hide()
  }
  if ($("#application").html().trim()) {} else {
      $("#a-h").hide()
  }
  if ($("#tech-specs").html().trim()) {} else {
      $("#t-h").hide()
  }
  if ($("#downloads").html().trim()) {} else {
      $("#d-h").hide()
  }
  if ($("#custom-field").html().trim()) {} else {
      $("#c-f").hide()
  }
  </code></pre>
  
  <p>The pages to see it in action is <a href="http://www.emedgroup.com.au/_webapp_1541245/Radio_Sonic_Machine" rel="nofollow">webpage</a></p>
  
  <p>Any hints to why ie doesnt like this or a better method would be appreciated.</p>