function gotonext(e){ var tempInput = document.createElement("input"); tempInput.type = "hidden"; tempInput.name = "luosimao_response"; tempInput.value = e; document.ChRegForm.appendChild(tempInput); //document.getElementById("gotonext").style.display="inline"; document.ChRegForm.submit(); }
动态添加,js,input元素