How to select strings next to the elements?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6925088/get-the-text-after-span-element-using-jquery">Get the text after span element using jquery</a>  </p>
</blockquote>



<p>I am trying to select the text next to a span element.</p>

<p>I have </p>

<pre><code>    &lt;span class='spanClass'&gt;span text&lt;/span&gt;

test this string....
</code></pre>

<p>I used</p>

<pre><code>$('.spanClass').next().val() -&gt;give me undefined....

//how to get the 'test this string....'?
</code></pre>

<p>Thanks for the help.</p>
