Possible Duplicate:
Getting text within element excluding decendants
I’m trying to use :not and .not() but still not work. I want the result to be only “Monday”.
Example markup:
<td id="day_id">
Monday
<div class='spec_class'>
<span>One</span>
<span>Two</span>
</div>
</td>
You need to look at the textNodes of the element
JSFiddle