ソースを参照

#753: Add type: 'POST' to remote validator examples

phuoc 11 年 前
コミット
aa1aadb977
2 ファイル変更3 行追加0 行削除
  1. 1 0
      demo/index.html
  2. 2 0
      demo/remote.html

+ 1 - 0
demo/index.html

@@ -236,6 +236,7 @@ $(document).ready(function() {
                         message: 'The username can only consist of alphabetical, number, dot and underscore'
                     },
                     remote: {
+                        type: 'POST',
                         url: 'remote.php',
                         message: 'The username is not available'
                     },

+ 2 - 0
demo/remote.html

@@ -116,6 +116,7 @@ $(document).ready(function() {
                         message: 'The username is required and can\'t be empty'
                     },
                     remote: {
+                        type: 'POST',
                         url: 'remote.php',
                         message: 'The username is not available',
                         delay: 1000
@@ -135,6 +136,7 @@ $(document).ready(function() {
                         message: 'The input is not a valid email address'
                     },
                     remote: {
+                        type: 'POST',
                         url: 'remote.php',
                         message: 'The email is not available',
                         delay: 2000