Browse Source

Fix submitHandler example due to validator.getFieldElements() changes

nghuuphuoc 11 years ago
parent
commit
76cafb1eaf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      demo/submitHandler.html

+ 1 - 1
demo/submitHandler.html

@@ -63,7 +63,7 @@
             submitHandler: function(validator, form) {
                 // validator is the BootstrapValidator instance
                 // form is the jQuery object present the current form
-                form.find('.alert').html('Thanks for signing up. Now you can sign in as ' + validator.getFieldElement('username').val()).show();
+                form.find('.alert').html('Thanks for signing up. Now you can sign in as ' + validator.getFieldElements('username').val()).show();
                 //form.submit();
             },
             fields: {