SO-23010280

by Tushar Gupta

HTML

<div class="myclass"> 
    <a href="#"></a>
    <a href="#"></a>
    Hey I want to delete this text
</div>

JavaScript

$(document).ready(function () {
    $('.myclass a:eq(1)')[0].nextSibling.remove();
});