浏览代码

#16: Disable client side validation in HTML 5

nghuuphuoc 12 年之前
父节点
当前提交
c28998c00a
共有 3 个文件被更改,包括 5 次插入1 次删除
  1. 2 0
      dist/js/bootstrapValidator.js
  2. 1 1
      dist/js/bootstrapValidator.min.js
  3. 2 0
      src/js/bootstrapValidator.js

+ 2 - 0
dist/js/bootstrapValidator.js

@@ -50,6 +50,8 @@
 
             var that = this;
             this.$form
+                // Disable client side validation in HTML 5
+                .attr('novalidate', 'novalidate')
                 .addClass(this.options.elementClass)
                 .on('submit', function(e) {
                     that.formSubmited = true;

文件差异内容过多而无法显示
+ 1 - 1
dist/js/bootstrapValidator.min.js


+ 2 - 0
src/js/bootstrapValidator.js

@@ -50,6 +50,8 @@
 
             var that = this;
             this.$form
+                // Disable client side validation in HTML 5
+                .attr('novalidate', 'novalidate')
                 .addClass(this.options.elementClass)
                 .on('submit', function(e) {
                     that.formSubmited = true;