
javascript菜鸟问题,如何重置表单
<html><head><metahttp-equiv="Content-Type"content="text/html;charset=big5"/><title>无标...
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {
font-size: 36px;
font-family: "宋体";
}
.STYLE2 {font-size: 18px}
-->
</style>
<script language="javascript" src="zhuce.js">
</script>
</head>
<body>
<div class="STYLE1" id="layer1">
用户注册</div>
<hr align="center" wigth="100%">
<table width="80%" height="100" align="left" cellspacing="40" bordercolor="#D4D0C8">
<tr>
<td>
<div>
<div class="STYLE2">
<label id="1">用户名
<input name="t1" type="text" id="t1" />
</label>
</div>
<div class="STYLE2">
<label id="2">密码
<input name="t2" type="password" id="t2" />
</label>
</div>
<div class="STYLE2">
<label>重复密码
<input type="password" name="t3" id="t3" />
</label>
</div>
<div class="STYLE2">
<label id="3">超级密码
<input name="t4" type="password" id="t4" />
</label>
</div>
<div class="STYLE2">
<label>重复超级密码
<input type="password" name="t5" id="t5" />
</label>
</div>
<div class="STYLE2">
性别
<form id="t6" name="t6" method="post" action="">
<p>
<label>
<input type="radio" name="RadioGroup1" value="男" />
男</label>
<br />
<label>
<input type="radio" name="RadioGroup1" value="女" />
女</label>
<br />
</p>
</form>
</div>
<div class="STYLE2">
<label id="5">年龄
<input name="t7" type="text" id="t7" />
</label>
</div>
<div class="STYLE2">
<label id="6">身份证
<input name="t8" type="text" id="t8" />
</label>
</div>
<div class="STYLE2">
<label id="7">真实姓名
<input name="t9" type="text" id="t9" />
</label>
</div>
</div>
</td>
</tr>
<tr>
<td>
<div>
<br />
</div>
</td>
</tr>
<tr>
<td>
<div><input name="a" type="reset" value=" 重 置 " /><input name="b" type="submit" id="b" onClick="mc()" value=" 提 交 " />
</div>
</td>
</tr>
</table>
</body>
</html>
big5是繁体编码
都 是对的
我都 不知道选谁的了 展开
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {
font-size: 36px;
font-family: "宋体";
}
.STYLE2 {font-size: 18px}
-->
</style>
<script language="javascript" src="zhuce.js">
</script>
</head>
<body>
<div class="STYLE1" id="layer1">
用户注册</div>
<hr align="center" wigth="100%">
<table width="80%" height="100" align="left" cellspacing="40" bordercolor="#D4D0C8">
<tr>
<td>
<div>
<div class="STYLE2">
<label id="1">用户名
<input name="t1" type="text" id="t1" />
</label>
</div>
<div class="STYLE2">
<label id="2">密码
<input name="t2" type="password" id="t2" />
</label>
</div>
<div class="STYLE2">
<label>重复密码
<input type="password" name="t3" id="t3" />
</label>
</div>
<div class="STYLE2">
<label id="3">超级密码
<input name="t4" type="password" id="t4" />
</label>
</div>
<div class="STYLE2">
<label>重复超级密码
<input type="password" name="t5" id="t5" />
</label>
</div>
<div class="STYLE2">
性别
<form id="t6" name="t6" method="post" action="">
<p>
<label>
<input type="radio" name="RadioGroup1" value="男" />
男</label>
<br />
<label>
<input type="radio" name="RadioGroup1" value="女" />
女</label>
<br />
</p>
</form>
</div>
<div class="STYLE2">
<label id="5">年龄
<input name="t7" type="text" id="t7" />
</label>
</div>
<div class="STYLE2">
<label id="6">身份证
<input name="t8" type="text" id="t8" />
</label>
</div>
<div class="STYLE2">
<label id="7">真实姓名
<input name="t9" type="text" id="t9" />
</label>
</div>
</div>
</td>
</tr>
<tr>
<td>
<div>
<br />
</div>
</td>
</tr>
<tr>
<td>
<div><input name="a" type="reset" value=" 重 置 " /><input name="b" type="submit" id="b" onClick="mc()" value=" 提 交 " />
</div>
</td>
</tr>
</table>
</body>
</html>
big5是繁体编码
都 是对的
我都 不知道选谁的了 展开
展开全部
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {
font-size: 36px;
font-family: "宋体";
}
.STYLE2 {font-size: 18px}
-->
</style>
<script language="javascript" src="zhuce.js">
</script>
</head>
<body>
<div class="STYLE1" id="layer1">
用户注册</div>
<hr align="center" wigth="100%">
<form id="t6" name="t6" method="post" action="">
<table width="80%" height="100" align="left" cellspacing="40" bordercolor="#D4D0C8">
<tr>
<td>
<div>
<div class="STYLE2">
<label id="1">用户名
<input name="t1" type="text" id="t1" />
</label>
</div>
<div class="STYLE2">
<label id="2">密码
<input name="t2" type="password" id="t2" />
</label>
</div>
<div class="STYLE2">
<label>重复密码
<input type="password" name="t3" id="t3" />
</label>
</div>
<div class="STYLE2">
<label id="3">超级密码
<input name="t4" type="password" id="t4" />
</label>
</div>
<div class="STYLE2">
<label>重复超级密码
<input type="password" name="t5" id="t5" />
</label>
</div>
<div class="STYLE2">
性别
<p>
<label>
<input type="radio" name="RadioGroup1" value="男" />
男</label>
<br />
<label>
<input type="radio" name="RadioGroup1" value="女" />
女</label>
<br />
</p>
</div>
<div class="STYLE2">
<label id="5">年龄
<input name="t7" type="text" id="t7" />
</label>
</div>
<div class="STYLE2">
<label id="6">身份证
<input name="t8" type="text" id="t8" />
</label>
</div>
<div class="STYLE2">
<label id="7">真实姓名
<input name="t9" type="text" id="t9" />
</label>
</div>
</div>
</td>
</tr>
<tr>
<td>
<div>
<br />
</div>
</td>
</tr>
<tr>
<td>
<div><input name="a" type="reset" value=" 重 置 " /><input name="b" type="submit" id="b" onClick="mc()" value=" 提 交 " />
</div>
</td>
</tr>
</table>
</form>
</body>
</html>
//顺便问一句,这big5是什么鬼编码?
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {
font-size: 36px;
font-family: "宋体";
}
.STYLE2 {font-size: 18px}
-->
</style>
<script language="javascript" src="zhuce.js">
</script>
</head>
<body>
<div class="STYLE1" id="layer1">
用户注册</div>
<hr align="center" wigth="100%">
<form id="t6" name="t6" method="post" action="">
<table width="80%" height="100" align="left" cellspacing="40" bordercolor="#D4D0C8">
<tr>
<td>
<div>
<div class="STYLE2">
<label id="1">用户名
<input name="t1" type="text" id="t1" />
</label>
</div>
<div class="STYLE2">
<label id="2">密码
<input name="t2" type="password" id="t2" />
</label>
</div>
<div class="STYLE2">
<label>重复密码
<input type="password" name="t3" id="t3" />
</label>
</div>
<div class="STYLE2">
<label id="3">超级密码
<input name="t4" type="password" id="t4" />
</label>
</div>
<div class="STYLE2">
<label>重复超级密码
<input type="password" name="t5" id="t5" />
</label>
</div>
<div class="STYLE2">
性别
<p>
<label>
<input type="radio" name="RadioGroup1" value="男" />
男</label>
<br />
<label>
<input type="radio" name="RadioGroup1" value="女" />
女</label>
<br />
</p>
</div>
<div class="STYLE2">
<label id="5">年龄
<input name="t7" type="text" id="t7" />
</label>
</div>
<div class="STYLE2">
<label id="6">身份证
<input name="t8" type="text" id="t8" />
</label>
</div>
<div class="STYLE2">
<label id="7">真实姓名
<input name="t9" type="text" id="t9" />
</label>
</div>
</div>
</td>
</tr>
<tr>
<td>
<div>
<br />
</div>
</td>
</tr>
<tr>
<td>
<div><input name="a" type="reset" value=" 重 置 " /><input name="b" type="submit" id="b" onClick="mc()" value=" 提 交 " />
</div>
</td>
</tr>
</table>
</form>
</body>
</html>
//顺便问一句,这big5是什么鬼编码?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<div><input name="a" type="reset" value=" 重 置 " />
这句就是不就是实现重置功能吗?
BIG5是页面使用的字符集 一般台湾那边用BIG5的多一些 简体中文多用GBK、GB2312或UTF-8
这句就是不就是实现重置功能吗?
BIG5是页面使用的字符集 一般台湾那边用BIG5的多一些 简体中文多用GBK、GB2312或UTF-8
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<form id="t6" name="t6" method="post" action=""> 移动到 <body>下一行
</form> 移动到 </body>上一行
</form> 移动到 </body>上一行
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
用Javascript把value都清了就行了。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
document.all.formName.reset();
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询