title: Uncaught TypeError: Object #<HTMLDivElement> has no method 'height' - Can't call jquery method on element
body: <p>I would need to loop within some html elements, using the same code I get an error</p>
  
  <blockquote>
    <p>jquery Uncaught TypeError: Object # has no method 'height'</p>
  </blockquote>
  
  <p>What is wrong here?</p>
  
  <pre><code>clamp: function() {
    var elms = $('#wrapper .content ul li .title');
    elms.each(function(i) {
      debugger
      var elm = this;
      var h = elm.height();
      var eO = elm.outerHeight();
      if (eO &gt; h) {
        elm.text(function(index, text) {
          return text.replace(/\W*\s(\S)*$/, '...');
        });
      }
    })
  </code></pre>