/** Hide an html element given its id */ function hideElementById(id) { // hide the element by setting css attribute document.getElementById(id).style.display = 'none' }