How to select text node in DOM using jQuery?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/298750/how-do-i-select-text-nodes-with-jquery">How do I select text nodes with jQuery?</a>  </p>
</blockquote>



<p>I have the following HTML:</p>

<pre><code>&lt;div id="main"&gt;17.00&lt;span&gt;%&lt;/span&gt;&lt;/div&gt;
</code></pre>

<p>I would like to select the <code>17.00</code> portion but it's not working when I use <code>$('#id:first-child').html();</code>. How can I select it?</p>
