How do I select the "some text" only with jQuery?
<p class="a">some text<a href="">some other text</a></p>
Here above is the code.
I guess $('p.a').text()
is not working correctly.
console.log($('p.a').text());
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<p class="a">some text<a href="">some other text</a></p>