用javascript 如何为一个制定的form 增加一个隐藏域? 用javascript 如何为一个制定的form 增加一个隐藏域?类似增加一个<INPUT TYPE="hidden" NAME="">,谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html><head><title> test</title><script>function add(){var oBtn = document.createElement('input');oBtn.type="hidden";//可将hidden换成button测试下document.form1.appendChild(oBtn);}</script></head><body ><form name="form1"><input type="button" value="add" onclick="add()"></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>政府信息公开</title><link href="index.css" rel="stylesheet" type="text/css"><script language="javascript"> function addInput(){ var frm=document.forms[0]; var newInput=document.createElement("input"); newInput.type="hidden"; newInput.name='nn'; frm.appendChild(newInput);}window.onload=addInput; </script></head><body bgcolor="#FFFFFF"><form > <input type='text'></form></body></html> content为什么无法识别警告未定义 问一个JS正则替换的问题。 Columntree 页面取值 JS选项卡的问题 急 js读取xml的问题 值传递问题 js求助 在线.急急...(怎么样才能把从数据库读出的一个变量赋值给javascript脚本里的另一个变量呢? 关于javascript开发好网站有哪些?? 有什么方法,可使表单内的组件背景变成透明的而文字不透明,请看例子: jscript 对输入框的字数的显示 请教高手:用JS怎么控制一个点
<head>
<title> test</title>
<script>
function add(){
var oBtn = document.createElement('input');
oBtn.type="hidden";//可将hidden换成button测试下
document.form1.appendChild(oBtn);
}</script>
</head>
<body >
<form name="form1"><input type="button" value="add" onclick="add()"></body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>政府信息公开</title>
<link href="index.css" rel="stylesheet" type="text/css">
<script language="javascript">
function addInput(){
var frm=document.forms[0];
var newInput=document.createElement("input");
newInput.type="hidden";
newInput.name='nn';
frm.appendChild(newInput);
}
window.onload=addInput;
</script></head>
<body bgcolor="#FFFFFF">
<form >
<input type='text'>
</form>
</body>
</html>