How After Submit and When back Button Press Form Field Reset ?

function formclear(){
document.getElementById(‘uName’).value = ”;
document.getElementById(‘vorname’).value = ”;
document.getElementById(‘adresse’).value = ”;
document.getElementById(‘plz’).value = ”;
document.getElementById(‘ort’).value = ”;
document.getElementById(‘uEmail’).value = ”;
document.getElementById(‘uEmail2’).value = ”;
document.getElementById(‘agb_digital’).checked = false;
document.getElementById(‘sixLettersCode’).value = ”;
//document.enForm.reset();
}

And But Below Code in Body Section :

<body onLoad=”formclear()” onUnload=”formclear()”>

Leave a Reply

© 2020 Spirituality