bootstrap.validator.js 怎么用

<link href="Styles/bootstrap.css" rel="stylesheet" />
<link href="Styles/bootstrapValidator.css" rel="stylesheet" />
<script src="Scripts/jquery-1.10.2.min.js"></script>
<script src="Scripts/bootstrap.min.js"></script>
<script src="Scripts/bootstrapValidator.js"></script>
引入这些文件之后

参照demo中的attribute.html 中的例子 怎么没有验证呢
已邀请:

百转回

赞同来自:

同求啊

A_small_cake

赞同来自:

官方api 上有例子的

A_small_cake

赞同来自:

//登录验证
$("#Form").bootstrapValidator({
message: 'This value is not valid',
excluded: [':disabled'],
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
email: {
validators: {
notEmpty: {
message: '电子邮箱不能为空'
},
emailAddress: {
message: '输入不是有效的邮箱地址'
}
}
},
password: {
validators: {
notEmpty: {
message: '密码不能为空'
}
}
}
}
}).on('success.form.bv', function(e) {
e.preventDefault();
alert("验证通过");
});

要回复问题请先登录注册