<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript" charset="utf-8">
window.onload=function(){
//var oBtn1=document.getElementById('btnSubmit');
var oBtn2=document.getElementById('btnReset');
var oForm=document.getElementById('frmLogin');
//oBtn1.onclick=function(){
// oForm.submit();
//}
oBtn2.onclick=function(){
oForm.reset();
}
}
</script>
</head>
<body>
<form id="frmLogin" action="/" >
<input type="text" name="loginName"/>
<input type="text" name="password"/>
<select name="roleId">
<option value="1">管理员</option>
<option value="2">操作员</option>
<option value="3">游客</option>
</select>
<input id="btnSubmit" type="submit" value="提交">
<input id="btnReset" type="button" value="重置">
</form>
</body>
</html>
05-11 11:13
查看更多