title: How to ignore any element in Javascript?
body: <p>I want to select only text from <strong>td</strong> by ignore 1122 from span.</p>
  
  <pre><code>$(document).on('click', 'table#tableid tbody tr td', function () {
  
      var types = $(this).
      console.log(types); 
  });
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;html&gt;
    &lt;table&gt;
      &lt;tbody&gt;
        &lt;tr&gt;&lt;td&gt;Text&lt;span&gt;1122&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;/tbody&gt; 
    &lt;/table&gt;
  &lt;/html&gt;
  </code></pre>