demo/search-app.js
function (elements) {
  elements.forEach(function(element) {
    document.getElementById(element).innerHTML = ''
    document.getElementById(element).value = ''
  })
}
function (elements) {
  elements.forEach(function(element) {
    document.getElementById(element).innerHTML = ''
    document.getElementById(element).value = ''
  })
}
function ( elements ) { elements . forEach ( function ( element ) { document . getElementById ( element ) . innerHTML = '' document . getElementById ( element ) . value = '' } ) }
Empty HTML elements
Empty HTML elements