Response title
This is preview!
$('a').each(function() {
if ($(this).attr('href').split('#')[0] == window.location.href.split("#")[0])
{
$(this).remove();
}
});
<a href="http://www.jqueryhelp.com/">jQuery Help</a>
jQuery Help
$(this).replaceWith($(this).text());
© 2013 jQuery Foundation
Sponsored by and others.