The '+' in document.getElementById("travelerinfo").innerHTML += travelerInfo; adds each form submission to the travelerinfo <div>. If you remove the '+', each form submission will replace the previously submitted content.