jquery validate plugin 如何讓沒通過驗證的輸入框後面不出現錯誤提示

From: http://stackoverflow.com/questions/4614685/jquery-validation-hide-error-message

Use the Validator errorPlacement option with an empty function:

$(“selector").validate({ errorPlacement: function(error, element) {} });

This effectively places the error messages nowhere.

最簡單有效的方法就是直接自訂修改自已的錯誤提示框的顯示方法。

參考:http://jqueryvalidation.org/validate

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s