여러 개의 span 태그가 포함 된 변수에 텍스트가 저장되어 있습니다.
한 번에 모든 범위의 모든 내용을 가져오고 싶습니다. jQuery 또는 javascript로 어떻게 할 수 있습니까?jQuery를 사용하여 어린이가있는 요소 내부의 텍스트를 가져올 수 있습니까
<htmlText>
Researchthe university has been given a 5 star rating in the current Research Assessment Exercise. It is one of the UK's leading technological universities, specialising in research to provide solutions critical to industry, commerce and the healthcare, voluntary and public sectors.
<span class="NBResult"></span><span class="NBResult">Data transmission speed</span>
<span>, green fuels,small business marketing needs, European bureaucracy and the treatment </span>
<span class="NBSearchTerm">of</span>
<span> </span><span class="NBSearchTerm">cancer</span>
<span> are all under investigation at the university. </span>
</htmlText>
합니다 (DOM에서이 작품은 DIV 번호 즐의 HTML을 가져온 다음 htmlStuff 같은 것을 사용하도록하려면) ??? – Andromeda
변수를 선택기에 배치하십시오. 코드를 업데이트 할 것입니다 ... – Sampson
하지만 범위 밖의 내용도 있습니다 .. 범위 내에서 물건 만 선택하고 싶습니다 ... – Andromeda