Extract innerHTML from span[class]
<p>so my code is something along the lines of: </p>

<pre><code>&lt;table&gt;&lt;tr&gt;&lt;td class="tdclass1"&gt;



$('#nameoftable tr').each(function(){
  tdclass1 = $(this).find(".classname").html();
  if (tdclass1:contains('classname'))
//do something here
});
</code></pre>

<p>What I want to do is simply extract the inner HTML of this specific span.</p>

<p>Any help is appreciated :)</p>
