Browse Source

#16: Disable client side validation in HTML 5

nghuuphuoc 12 years ago
parent
commit
c28998c00a

+ 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;

File diff suppressed because it is too large
+ 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;