bootstrap学习起步篇:初识bootstrap之表单验证(二)
学习bootstrap是个过程,它提供给我们的文档上有很详细的说明。包括常用的栅栏布局、页面元素等,这里就不啰嗦了,今天,我就来说下结合jquery的表单验证。
最开始不借助插件,我们需要自己去编写验证规则。使用jquery验证,能让我们省去一些功夫。
首先我们需要引入js文件:jquery.validate.js;另外为了能使用它的样式,我们需另外引入screen.css。当然,如果要使用bootstrap,还是要引入其所需的文件的。
下面,我们需要一个表单:
<form class="form-horizontal" id="form1" method="post"> <div class="control-group">
<label class="control-label">
用户名
</label>
<div class="controls">
<div class="input-icon">
<input type="text" class="m-wrap" id="loginname" name="loginname">
</div>
</div>
</div> <div class="control-group">
<label class="control-label">
手机
</label>
<div class="controls">
<div class="input-icon">
<input type="text" class="m-wrap" id="mobilephone" name="mobilephone">
</div>
</div>
</div> <div class="control-group">
<label class="control-label">
邮箱
</label>
<div class="controls">
<div class="input-icon">
<input type="text" class="m-wrap" id="email" name="email">
</div>
</div>
</div> <div class="form-actions">
<button type="submit" class="btn blue">
<i class="icon-ok"></i> 保存
</button>
<button type="button" class="btn" onclick="history.go(-1)">
返回
</button>
</div>
</form>
在页面加载的时候,我需要添加表单的验证规则:
function checkForm(){
$("#form1").validate({
onsubmit:true,
rules: {
loginname: {
required: true //此处就是必填项验证
},
mobilephone: {
required: true,
phone:true //号码格式验证,jquery.validate.js本身不提供此项验证,可通过引入扩展插件或修改jquery.validate.js实现
},
email: {
required: true,
email: true //邮箱格式验证
},
roleidstr:{
required: true
}
},
messages: { //相对应的错误提示信息
loginname: {
required: "请输入账号!"
},
mobilephone: "请输入有效的手机号!",
email: "请输入有效的邮箱地址"
},
success:"valid",
submitHandler:function(){
save(); //验证通过后,点击保存按钮时执行的函数
}
});
} $(function() {
checkForm();
//表单数据初始化
}
});
然后,我们就可以在表单中输入数据,体验它的验证效果了,附上一张截图:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAr0AAAIgCAIAAAAHvkYSAAAYzklEQVR4nO3dT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DsJVuYCCvdENj1W93w/TRlm42fjcsFYBuAI6iGxjIjtV3dzQ8rfq3hx2FpbvfmvsTI3RDst/gc5HAK3QDA9l34r57Cd/XDaPtNyS7Dv4dJnAU3cBAdq/BO6Lhl7k3IKZfjN8Nswu/bgDeRDcwkN1r8D0dtt7ll7ldh7wSOnbD0lsSSzdeteMYer1OgI50AwN5pRv2pcamDniqih2lclQ3PO00rKaA/QbgKLqBgXxxN/Sdx7/4jjV7BL1eJ0BHuoGBdF/LdcMmvV4nQEe6gYF0X8t1wya9XidAR7qBgXRfy3XDJr1eJ0BHuoGBdF/LdcMmvV4nQEe6gYF0X8t1wya9XidAR7qBgXRfy3XDJr1eJ0BHuoGBdF/LdcMmvV4nQEe6gYF0X8t1wya9XidAR7qBgXRfy3XDJr1eJ0BHuoGBdF/LdcMmvV4nQEe6AQBI6QYAIKUbAICUbgAAUroBAEjpBgAgpRsAgJRuAABSugEASOkGACClGwCAlG4AAFK6AQBI6QYAIKUbAICUbgAAUroBAEjpBgAgpRsAgJRuAABSugEASOkGACD1ajcAAOehGwCAlG4AAFK6AQBI6QYAIKUbAICUbgAAUroBAEjpBgAgpRsAgJRuAABSugEASOkGACClGwCAlG4AAFK6AQBI6QYAIKUbAICUbgAAUroBAEjpBgAgpRsAgJRuAABSugEASOkGACClGwCAlG4AAFK6AQBI6QYAIKUbAICUbgAAUroBAEjpBgAgtdINxhhjjDH3aXUDAMAj3QAApHQDAJDSDQBASjcAACndAACkdAMAkNINAEBKNwAAqf8Drlez11vAENUAAAAASUVORK5CYII=" alt="" />
当我们输入正确的数据后,点击保存按钮,将执行我们的save操作。
function save() {
alert("我通过验证了");
}
这样,我们就完成了表单的验证和提交的过程。
bootstrap学习起步篇:初识bootstrap之表单验证(二)的更多相关文章
- Bootstrap框架(基础篇)之列表,表格,表单
继续上篇的基础部分延伸,主要说一下列表,表格,表单相关Bootstrap框架变化以及基础知识. 1.列表篇 除了HTML提供的三种基本列表样式: 无序列表 <ul> <li>… ...
- angularjs学习第四天笔记(第一篇:简单的表单验证)
您好,我是一名后端开发工程师,由于工作需要,现在系统的从0开始学习前端js框架之angular,每天把学习的一些心得分享出来,如果有什么说的不对的地方,请多多指正,多多包涵我这个前端菜鸟,欢迎大家的点 ...
- jQuery学习之路(8)- 表单验证插件-Validation
▓▓▓▓▓▓ 大致介绍 jQuery Validate 插件为表单提供了强大的验证功能,让客户端表单验证变得更简单,同时提供了大量的定制选项,满足应用程序各种需求.该插件捆绑了一套有用的验证方法,包括 ...
- Bootstrap学习笔记(3)--表格\表单\图片
Bootstrap表格 表格类: .table只会在表行之间增加横线; .table-striped会在表格行之间增减斑马线; .table-hover会给表设置鼠标悬停状态; ...
- 【Java EE 学习 33 下】【validate表单验证插件】
一.validate 1.官方网站:http://jqueryvalidation.org/ 2.文档说明:http://jqueryvalidation.org/documentation/ 3.j ...
- bootstrap学习起步篇:初识bootstrap之html5语法构建hello篇(一)
目前选择使用bootstrap作为前端页面模板,是件很省心的事情.官网上给出的实例和教程也很多.在实际使用过程中,我们也许还要借助文档去了解它的元素和样式.但也不能减少我们使用他的兴趣. 我准备将其整 ...
- H5自带表单验证
HTML5自带的表单验证 转载:https://www.web-tinker.com/article/20781.html HTML5对表单元素提供了patern属性,它接受一个正则表达式.表单提交时 ...
- html5 表单样式 表单验证1 2 3
html5 表单样式 ie9以下不支持 <!DOCTYPE html> <html lang="en"> <head> <meta cha ...
- Bootstrap学习总结笔记(24)-- 基于BootstrapValidator的Form表单验证
Form表单进行数据验证是十分必要的,我们可以自己写JS脚本或者使用JQuery Validate 插件来实现.对于Bootstrap而言,利用BootstrapValidator来做Form表单验证 ...
随机推荐
- 菜鸟学习 git
到新公司学习和使用 git 有一段时间了.不得不说 git 真的很牛逼,当然,git 的牛逼是建立在 Linux 之父的牛逼的基础上的. 首先跪着推荐 git 学习网站:http://www.liao ...
- SQLite使用事务更新—by command
public void SaveToDB(DataTable dt) { /* todo:sqlite没有提供批量插入的机制,需要通过事务处理 更新所有数据 * http://www.cnblogs. ...
- Unity3D-Baked Lightmapping 示例学习
首先,看一下摄像机的Rendering Paths http://game.ceeger.com/Manual/RenderingPaths.html 可以看出,对于灯光的渲染质量 Deferred ...
- Codeforces gym 100685 E. Epic Fail of a Genie 贪心
E. Epic Fail of a GenieTime Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://codeforces.com/gym/100685 ...
- VMware 9 安装 OS X 10.8.4 并安装 Xcode 4.6
转自:http://blog.csdn.net/weizi4332/article/details/9264799 学习Objective-C必须要有运行环境,Xcode是最好的选择.不过Window ...
- php生成excel或php生成csv
一.php生成excel 使用phpexcel类文件生成 二.php生成csv <?php$action ="make";if ($action=='make'){ $fp ...
- js new date详解
创建一个日期对象: var objDate=new Date([arguments list]); var ini_date=new Date(2014,7,0); //是代表7月最后一天 ,也就是2 ...
- 关于“学习Linux用什么系统”的解答
首先,阐述一下,我个人的观点——这个问题我曾经也想了很久了,这绝不是长篇大论后就是简单一句,适合你的就是最好的.其实,很多人看到这一句,心里已经有成千上万个奔腾了(至少我当时是这样的),为什么?因为我 ...
- C. Fox And Names
C. Fox And Names time limit per test 2 seconds memory limit per test 256 megabytes input standard in ...
- cocos2d-x lua 实现单例(管理类)
cocos2d-x lua 实现单例(管理类) version: cocos2d-x 3.6 示例代码 local DogManager = class("DogManager") ...