Can anyone tell me what is going wrong with this code? I tried to submit a form with JavaScript, but an error \".submit is not a function\" shown. See below for more details
What I used is
var enviar = document.getElementById("enviar"); enviar.type = "submit";
Just because everything else didn´t work.