<div class="imgbox" id="imgbox1">Box 1<br>
  <button onclick="removeElement()">Remove</button>
</div>
<div class="imgbox" id="imgbox2">Box 2<br>
  <button onclick="changeVisibility()">Hide</button>
</div>
<div class="imgbox">Box 3<br>
   <button onclick="resetElement()">Reset All</button>
</div>

    .imgbox {
        float: left;
        text-align: center;
        width: 120px;
        height:120px;
        border: 1px solid gray;
        margin: 4px;
        padding: 6px;
        position: relative;
    }

    button {
        width: 100%;
        position: absolute;
        bottom: 0;
        left: 0;
    }
function removeElement() {
    document.getElementById("imgbox1").style.display = "none";
}

function changeVisibility() {
    document.getElementById("imgbox2").style.visibility = "hidden";
}

function resetElement() {
    document.getElementById("imgbox1").style.display = "block";
    document.getElementById("imgbox2").style.visibility = "visible";
}
Rerun