I am try to get the specific text using jquery, Here is my code,
<div class='sometext'>
sometext
<span class="innerspan">span_text</span>
</div>
From the above html I need to get the sometext using jquery like this,
$('.sometext').text()
But I received the output sometextspan_text.
How to get the sometext only ?