JSFiddle - React, Tailwind, and code Playground

HTML

<body>
<div id="showstore">Button</div>
<div id="foo"><a href="http://jsfiddle.net/">hello</a>
<a href="http://google.com/">okay</a></div>
<div class="container"><a href="http://jsfiddle.net/">bye</a>
<a href="http://google.com/">see</a></div>
</body>

CSS

#showstore   
{
    height: 30px;
        width:48px;
      background-color:red;  
}

#foo
{
    height:100px;
    width:200px;
    position:absolute;
}

.container
{
    height:100px;
    width:200px;
    position:absolute;
    left:100px;
}

JavaScript

$( "body" ).on( "click", "#showstore", function() {

    $('.container').children('a').each(function(){
    
        $('#foo a[href="' + $(this).attr('href') + '"]').remove();
    
    });
    
});