开发者

Ajax validation with jquery form validation plugin

I am using jquery form validation plugin http://bassistance.de/jquery-plugins/jquery-plugin-validation/

If form is invalid my server gives response in name pair combination where :

data: email:"Is invalid开发者_开发百科" name" "Is invalid"

is it possible to use with jquery ajax on form submit and mark field as an error using this plugin ?


The jQuery validate plugin is all about client validation. It supports remote validation as well but it is intended to be used to validate a single field but you can send additional fields to the server to validate this single field. If you are performing your entire validation of multiple fields on the server (which you always should), you'd better leave it to the server when the form is submitted.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜