diff --git a/examples/quickstart/src/main/webapp/WEB-INF/layouts/default.jsp b/examples/quickstart/src/main/webapp/WEB-INF/layouts/default.jsp
index e12ab02a..e44d9e92 100644
--- a/examples/quickstart/src/main/webapp/WEB-INF/layouts/default.jsp
+++ b/examples/quickstart/src/main/webapp/WEB-INF/layouts/default.jsp
@@ -18,7 +18,7 @@
-
+
diff --git a/examples/quickstart/src/main/webapp/WEB-INF/views/account/adminUserForm.jsp b/examples/quickstart/src/main/webapp/WEB-INF/views/account/adminUserForm.jsp
index 6ffae83a..20316093 100644
--- a/examples/quickstart/src/main/webapp/WEB-INF/views/account/adminUserForm.jsp
+++ b/examples/quickstart/src/main/webapp/WEB-INF/views/account/adminUserForm.jsp
@@ -10,9 +10,7 @@
//聚焦第一个输入框
$("#name").focus();
//为inputForm注册validate函数
- $("#inputForm").validate({
- errorElement: "span"
- });
+ $("#inputForm").validate();
});
diff --git a/examples/quickstart/src/main/webapp/WEB-INF/views/account/login.jsp b/examples/quickstart/src/main/webapp/WEB-INF/views/account/login.jsp
index f754c435..19105071 100644
--- a/examples/quickstart/src/main/webapp/WEB-INF/views/account/login.jsp
+++ b/examples/quickstart/src/main/webapp/WEB-INF/views/account/login.jsp
@@ -10,9 +10,7 @@
登录页
diff --git a/examples/quickstart/src/main/webapp/WEB-INF/views/account/profile.jsp b/examples/quickstart/src/main/webapp/WEB-INF/views/account/profile.jsp
index dca991fb..0701c7ea 100644
--- a/examples/quickstart/src/main/webapp/WEB-INF/views/account/profile.jsp
+++ b/examples/quickstart/src/main/webapp/WEB-INF/views/account/profile.jsp
@@ -10,9 +10,7 @@
//聚焦第一个输入框
$("#name").focus();
//为inputForm注册validate函数
- $("#inputForm").validate({
- errorElement: "span"
- });
+ $("#inputForm").validate();
});
diff --git a/examples/quickstart/src/main/webapp/WEB-INF/views/account/register.jsp b/examples/quickstart/src/main/webapp/WEB-INF/views/account/register.jsp
index f17db1ee..45c5356a 100644
--- a/examples/quickstart/src/main/webapp/WEB-INF/views/account/register.jsp
+++ b/examples/quickstart/src/main/webapp/WEB-INF/views/account/register.jsp
@@ -11,7 +11,6 @@
$("#loginName").focus();
//为inputForm注册validate函数
$("#inputForm").validate({
- errorElement: "span",
rules: {
loginName: {
remote: "${ctx}/register/checkLoginName"
diff --git a/examples/quickstart/src/main/webapp/WEB-INF/views/task/taskForm.jsp b/examples/quickstart/src/main/webapp/WEB-INF/views/task/taskForm.jsp
index 82a78a4b..157e61bc 100644
--- a/examples/quickstart/src/main/webapp/WEB-INF/views/task/taskForm.jsp
+++ b/examples/quickstart/src/main/webapp/WEB-INF/views/task/taskForm.jsp
@@ -11,9 +11,7 @@
//聚焦第一个输入框
$("#task_title").focus();
//为inputForm注册validate函数
- $("#inputForm").validate({
- errorElement: "span"
- });
+ $("#inputForm").validate();
});
diff --git a/examples/quickstart/src/main/webapp/static/jquery-validation/1.9.0/messages_cn.js b/examples/quickstart/src/main/webapp/static/jquery-validation/1.9.0/messages_bs_cn.js
similarity index 93%
rename from examples/quickstart/src/main/webapp/static/jquery-validation/1.9.0/messages_cn.js
rename to examples/quickstart/src/main/webapp/static/jquery-validation/1.9.0/messages_bs_cn.js
index 8415f4ad..6777e2eb 100644
--- a/examples/quickstart/src/main/webapp/static/jquery-validation/1.9.0/messages_cn.js
+++ b/examples/quickstart/src/main/webapp/static/jquery-validation/1.9.0/messages_bs_cn.js
@@ -20,4 +20,8 @@ jQuery.extend(jQuery.validator.messages, {
range: jQuery.validator.format("请输入一个介于 {0} 和 {1} 之间的值"),
max: jQuery.validator.format("请输入一个最大为 {0} 的值"),
min: jQuery.validator.format("请输入一个最小为 {0} 的值")
-});
\ No newline at end of file
+});
+
+jQuery.extend(jQuery.validator.defaults, {
+ errorElement: "span"
+});
\ No newline at end of file
diff --git a/examples/showcase/src/main/webapp/WEB-INF/views/account/userForm.jsp b/examples/showcase/src/main/webapp/WEB-INF/views/account/userForm.jsp
index e2ae26a0..502798bd 100644
--- a/examples/showcase/src/main/webapp/WEB-INF/views/account/userForm.jsp
+++ b/examples/showcase/src/main/webapp/WEB-INF/views/account/userForm.jsp
@@ -7,6 +7,7 @@
综合演示用例
+
diff --git a/examples/showcase/src/main/webapp/static/jquery-validation/1.9.0/messages_cn.js b/examples/showcase/src/main/webapp/static/jquery-validation/1.9.0/messages_bs_cn.js
similarity index 93%
rename from examples/showcase/src/main/webapp/static/jquery-validation/1.9.0/messages_cn.js
rename to examples/showcase/src/main/webapp/static/jquery-validation/1.9.0/messages_bs_cn.js
index 8415f4ad..6777e2eb 100644
--- a/examples/showcase/src/main/webapp/static/jquery-validation/1.9.0/messages_cn.js
+++ b/examples/showcase/src/main/webapp/static/jquery-validation/1.9.0/messages_bs_cn.js
@@ -20,4 +20,8 @@ jQuery.extend(jQuery.validator.messages, {
range: jQuery.validator.format("请输入一个介于 {0} 和 {1} 之间的值"),
max: jQuery.validator.format("请输入一个最大为 {0} 的值"),
min: jQuery.validator.format("请输入一个最小为 {0} 的值")
-});
\ No newline at end of file
+});
+
+jQuery.extend(jQuery.validator.defaults, {
+ errorElement: "span"
+});
\ No newline at end of file