function changeView(args, val) {
    args.forEach(el => {
      if (val == "show") {
        document.getElementById(el).className = "show";
      } else {
        document.getElementById(el).className = "hide";
      }
    });
  }
// Change element from showing or hiding
Change element from showing or hiding
Change element from showing or hiding
function changeView(args, val) {
    args.forEach(el => {
      if (val == "show") {
        document.getElementById(el).className = "show";
      } else {
        document.getElementById(el).className = "hide";
      }
    });
  }
function changeView ( args , val ) { args . forEach ( el => { if ( val == "show" ) { document . getElementById ( el ) . className = "show" ; } else { document . getElementById ( el ) . className = "hide" ; } } ) ; }
Change element from showing or hiding
Change element from showing or hiding