hoe to hide element from js code example
Example 1: hide element js
function showStuff(id, text, btn) {
document.getElementById(id).style.display = 'block';
// hide the lorem ipsum text
document.getElementById(text).style.display = 'none';
// hide the link
btn.style.display = 'none';
}
Example 2: js hide element
Check this! https://dev.to/devlorenzo/js-hide-and-show-32og