表单校验 点击登陆按钮的时候,触发验证

这篇博客展示了如何使用JavaScript进行表单验证,特别是针对邮箱地址的验证。当用户点击登录按钮时,会触发checkEmail函数,该函数检查输入的邮箱是否包含'@'和'.',如果不满足条件则弹出警告,并阻止表单提交。
摘要由CSDN通过智能技术生成
<title>休闲网登录页面</title>

<script type="text/javascript" src="js/jquery-1.11.1.js"></script>

<style type="text/css">
* {
	padding: 0;
	margin: 0;
}

body {
	font-size: 12px;
	color: #000;
	line-height: 25px;
}

.main {
	float: none;
	margin-top: 0px;
	margin-right: auto;
	margin-bottom: 0px;
	margin-left: auto;
	clear: both;
}

#header {
	background-image: url(./images/bg.gif);
	background-repeat: repeat-x;
	height: 36px;
}

#headerLeft {
	width: 200px;
	float: left;
}

#headerRight {
	width: 160px;
	float: right;
	color: #FFF;
}

#center {
	width: 362px;
	text-align: center;
	margin-top: 20px;
	margin-right: auto;
	margin-bottom: 20px;
	margin-left: auto;
}

.bg {
	background-image: url(图片/dl_l_bg.gif);
	background-repeat: repeat-y;
}

.inputs {
	width: 110px;
	height: 16px;
	border: solid 1px #666666;
}

.bold {
	font-size: 18px;
	font-weight: bold;
	text-align: center;
	line-heigh
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值