<a href="#">Domain name<span class="value">2</span></a>
I would like to retrieve only the text "Domain name".
I have tried using $('a').text() but that will also get the text inside the descending SPAN tag. Is there a way to select only the first text node inside the A tag somehow?
I can't figure out how.
.contents('not:(span)') do not work either.