change element visibility javascript code example
Example 1: how to make div visible and invisible in javascript
elem.style.display = 'none'; // hide
elem.style.display = 'block'; // show - use this for block elements (div, p)
elem.style.display = 'inline'; // show - use this for inline elements (span, a)
Example 2: js set visibility
Check this! https://dev.to/devlorenzo/js-hide-and-show-32og
Example 3: how to change hidden on html
$('#check').change(function() {
$("#delete").prop("hidden", !this.checked);
})