重複の可能性:
jquery を使用してスパン要素の後のテキストを取得する
span 要素の横にあるテキストを選択しようとしています。
私は持っている
<span class='spanClass'>span text</span>
test this string....
使った
$('.spanClass').next().val() ->give me undefined....
//how to get the 'test this string....'?
助けてくれてありがとう。