浏览代码

Fix submitHandler example due to validator.getFieldElements() changes

nghuuphuoc 11 年之前
父节点
当前提交
76cafb1eaf
共有 1 个文件被更改,包括 1 次插入1 次删除
  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: {