帮我用JS控制表单内容不能为空
<!DOCTYPEhtml><html><head><metahttp-equiv="Content-Type"content="text...
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>系统 V3.0</title>
<link rel='stylesheet' href='./css/login.css' type='text/css' />
<body>
<div id="login">
<h1><a href="#" title="">用户注册--管理系统</a></h1>
<form accept-charset="utf-8" action="/gys.php?action=user&do=add2" method="post">
<p>
<label>注册帐号:</label>
<input class="input" ng-minlength="5" placeholder="请输入注册账号" name="username" size="20" type="text" />
</p>
<p>
<label>注册密码:</label>
<input class="input" placeholder="请输入注册密码" name="password" size="20" type="password" />
</p>
<p>
<label>微信账号:</label>
<input class="input" placeholder="请输入微信账号" name="wxname" size="20" type="text" />
</p>
<p>
<label>阿里账号:</label>
<input class="input" placeholder="请输入阿里账号/没有可不写" name="aliname" size="20" type="text" />
</p>
<p>
<label>手机号码:</label>
<input class="input" placeholder="请输入手机号码" name="phone" size="20" type="text" />
</p>
<p class="submit">
<input class="button-primary" name="commit" type="submit" value="提交信息" />
</p>
</form>
</div>
</body>
</html> 展开
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>系统 V3.0</title>
<link rel='stylesheet' href='./css/login.css' type='text/css' />
<body>
<div id="login">
<h1><a href="#" title="">用户注册--管理系统</a></h1>
<form accept-charset="utf-8" action="/gys.php?action=user&do=add2" method="post">
<p>
<label>注册帐号:</label>
<input class="input" ng-minlength="5" placeholder="请输入注册账号" name="username" size="20" type="text" />
</p>
<p>
<label>注册密码:</label>
<input class="input" placeholder="请输入注册密码" name="password" size="20" type="password" />
</p>
<p>
<label>微信账号:</label>
<input class="input" placeholder="请输入微信账号" name="wxname" size="20" type="text" />
</p>
<p>
<label>阿里账号:</label>
<input class="input" placeholder="请输入阿里账号/没有可不写" name="aliname" size="20" type="text" />
</p>
<p>
<label>手机号码:</label>
<input class="input" placeholder="请输入手机号码" name="phone" size="20" type="text" />
</p>
<p class="submit">
<input class="button-primary" name="commit" type="submit" value="提交信息" />
</p>
</form>
</div>
</body>
</html> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询