I'm trying to remove the text whatever is present after a particular tag using jquery
My html code is
<div class="myclass">
<a href="#"></a>
<a href="#"></a>
Hey I want to delete this text
</div>
Jquery
$(document).ready(function() {
$('.myclass').each(function() {
// Confused here
$(this).children(':nth-child(3)').text('');
});
});
I guess that there is no 3-rd child in the class. Any ideas would be greatly appreciated.