Show or hide an element

Show an element

ele.style.display = '';

Hide an element

ele.style.display = 'none';

More

Previous
Set css style for an element
Next
Submit a form with ajax