title: Uncaught TypeError: $this.text is not a function
body: <p>The second statement in this code:</p>
  
  <pre><code>var $this = $(this).children('div.submenu1').children('a.subtile')[0],
  title = $this.text(),
  name = $this.attr('node').val;
  </code></pre>
  
  <p>produces this error:</p>
  
  <pre><code>Uncaught TypeError: $this.text is not a function
  </code></pre>
  
  <p>When I hover over <code>$this.text()</code> in Chrome debugger I can see the value I want to have in <code>title</code>.</p>
  
  <p>How can I fix this error?</p>