If the answer is yes, then you should hide your element with the style property:
const hideElement = document.querySelector('#element-to-hide') hideElement.style.display = 'none'
If you don’t need to bring the element back again, use this method:
const removeElement = document.querySelector('#element-to-remove') removeElement.parentNode.removeChild(removeElement)
Remember that when using
querySelector() to select elements,
# is for elements with ID attributes,
. is for classes.